The Parthian shot, an ancient military tactic where archers on horses would feign retreat and then turn their bodies while at full gallop to shoot at the pursuing enemy. – WTF Fun Facts
Source: https://en.wikipedia.org/wiki/Parthian_shot
WTF Fun Fact – Parthian Shot

Hence the expression, “a parting shot”