E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
To poke your head into a hornets nest. To bring a hornets nest about your ears. To get into trouble by meddling and making. The bear is very fond of honey, and often gets stung by poking its snout by mistake into a hornets nest in search of its favourite dainty.