pull a rabbit out of a hat
📖 generalMeaning
To create a surprising or clever solution to a problem.
Literal Meaning
To pull a rabbit from a hat.
Example
“The magician pulled a rabbit out of a hat, astonishing the audience.”