The story
The first recorded use of the phrase discovered to date is an article criticizing Representative James Seddon of Virginia for claiming that a regiment in the Mexican–American War had "snatched victory from the jaws of defeat."
Etymology from Wiktionary, CC BY-SA 4.0.