Green’s Dictionary of Slang

fag v.1

[SE feague, to beat, to whip; ult. Ger. fegen, to polish]

(UK Und.) to beat; thus fagging n., a beating.

implied in fag the fen
[UK]A. Smith Lives of Most Notorious Highway-men, etc. (1926) 205: Fag, to beat. Fag the bloss, i.e., bang the wench.
[UK]Bridges Burlesque Homer (3rd edn) 109: talthibious to the boats did run / To fetch for Jove a hot cross-bun; / Knowing their bones he’d soon be fagging / Should they not keep his chaps a wagging.
[UK]Grose Classical Dict. of the Vulgar Tongue.
[UK]G. Andrewes Dict. Sl. and Cant.
[UK]Lex. Balatronicum.
[UK]Egan Grose’s Classical Dict. of the Vulgar Tongue.
[US]‘Jack Downing’ Andrew Jackson 70: Gouge him, hoop his barrel, stranger; fag him in the craw, hit him in the pudding bag.
[US]Matsell Vocabulum.
[UK]Hotten Sl. Dict.
[UK]Partridge DSUE (1984) 374/1: fagging. A beating, thrashing, thumping.

In phrases