Green’s Dictionary of Slang

what the dickens! excl.

also what a dickens!

a euph. for what the devil! excl.

[UK]T. Heywood Edward IV (1874) I 40: What the dickens? is it loue that makes ye prate to me so fondly?
[UK]J. Gay Wife of Bath (rev. edn) V iii: Whatadickens, asleep!
[UK]G. Colman Yngr Poor Gentleman I i: What a dickens! be that son Stephen keeping such a clatter?
[UK]Worcs. Chron. 13 Oct. 3/1: Ahem! what the dickens!
[UK]‘Frank Richards’ Billy Bunter at Butlins 213: What the dickens —.
[UK]Guardian G2 30 July 3: Other projects in the pipeline: [...] What the Dickens? (quiz show).