give it to someone vs give someone what for

give it to someone

verb
  • To beat up or punish someone. 

  • To have sexual relations with someone. 

  • To put up a good fight against someone. 

  • To give someone credit; to praise someone. 

give someone what for

verb
  • To punish; to rebuke. 

How often have the words give it to someone and give someone what for occurred in a corpus of books? (source: Google Ngram Viewer )