The quote is "Magic mirror on the wall..."
The story goes that the wicked witch's gardener overheard her appealing to the mirror. After she'd left the room he sneaked in and intoned:
"Mirror mirror on the door
Make my penis touch the floor..."
It worked: his legs dropped off...