In Act III, Scene I of A Midsummer Night's Dream, Titania speaks the line "Thou art as wise as thou art beautiful" to Bottom—who, thanks to Puck's magic, now wears an ass's head.
The line is overheard by Oberon, King of the Fairies, who is watching invisibly. This is exactly what he planned: he ordered Puck to anoint Titania's eyes with the love-in-idleness flower so she would fall in love with the first creature she saw upon waking. That creature is Bottom. Oberon's eavesdropping confirms his scheme is working—Titania has been enchanted into doting on a "monster," humiliating her into releasing the changeling boy Oberon wants.
The moment is delicious dramatic irony: Titania speaks tender words to a donkey-headed weaver; Oberon watches, satisfied; the audience watches Oberon watch. Three layers of awareness, one absurd reality.