scare out of one's wits

listen to the pronunciation of scare out of one's wits
English - English
To frighten someone to such an extent that they behave irrationally

He scared me out of my wits, sneaking up behind me in the dark, like that.