late 14c., "deal blows with a hammer or axe;" mid-15c., "to produce (something) by blows with a hammer," from hammer (n.). Also sometimes in Middle English the verb to describe how Christ was crucified. Figurative meaning "work (something) out laboriously" recorded from 1580s. Meaning "beat or drive with or as if with a hammer" is from 1640s; that of "to defeat heavily" is from 1948. Old English had hamorian "to beat out, forge." Related: Hammered; hammering.
Crist, as he was ruthfully hamerd apon the croce, Songe to his fadire of heven.
["The Mirror of Man's Salvation," 15c.]
<a href="https://www.etymonline.com/word/Hammered">Etymology of Hammered by etymonline</a>
Harper, D. (n.d.). Etymology of Hammered. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/Hammered