1570s, "the lash of a whip," from whip (n.) + lash (n.). The injury caused by sudden head motion so called by 1955, in reference to the notion of moving to and fro like a cracking whip. The verb in this sense is recorded by 1971.
"instrument for flagellating," early 14c., from whip (v.) and perhaps in part from Middle Low German wippe "quick movement." In parliamentary use from 1850 (the verb in this sense is recorded from 1742), from the sense in fox-hunting. The parliamentary whip's duty originally was to ensure the attendance of party members on important occasions.
c. 1300, las "a blow, a stroke," later "flexible part of a whip" (late 14c.), possibly imitative; compare lash (v.1), which might be the immediate source of this. Century Dictionary says Irish lasg "a lash, whip, whipping" is of English origin. The lash "punishment by flogging" is from 1690s.
Others are reading
<a href="https://www.etymonline.com/word/whiplash">Etymology of whiplash by etymonline</a>
Harper, D. (n.d.). Etymology of whiplash. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/whiplash