The line is a popular paraphrase from Monty Python and the Holy Grail (1975).
The Black Knight (John Cleese), after losing all limbs, refuses to yield, shouting “It’s just a flesh wound!” and continuing to taunt King Arthur. The exact quoted phrasing is a meme-ified version of this scene.