"We are all ignorant fools, acting crazy on the stage knowing the curtain is falling." What was the original text? Which work by Shakespeare?

Much like this line from Macbeth:

Macbeth:

To-morrow, and to-morrow, and to-morrow,

Creeps in this petty pace from day to day,

To the last syllable of recorded time;

And all our yesterdays have lighted fools

The way to dusty death. Out, out, brief candle!

Life's but a walking shadow; a poor player,

That struts and frets his hour upon the stage,

And then is heard no more: it is a tale

Told by an idiot, full of sound and fury. idiot, full of sound and fury,

Signifying nothing.