Origin of the phrases “third time’s the charm” and “third time lucky”?
Solution 1:
I think the origin of these phrases is from Shakespeare's The Merry Wives of Windsor, 1602:
As for which came first, lucky or charm, I found the charm variation earlier and not of American origin as The Phrase Finder has, but British. This is from The Cabinet Album, 1830 (date check):
And the lucky version I found three years later in The Port Admiral, by William Johnstoun N. Neale, 1833 (date check):
Since these two variations can be traced back to the same time period and the same country, I think it's safe to say they are related and that they both echo Shakespeare.
Edit: Heck, why not throw a pretty Ngram in for good measure:
Solution 2:
Gary Martin at The Phrase Finder has the British phrase third time lucky derived from the earlier "proverbial" luck of the third adventure, traced in print back to 1839. As to the reason for the luck, the theory of it referring to an English law freeing a condemned man after three failed attempts at hanging is debunked. He concludes:
It seems more likely that it is just a folk belief that, having had setbacks, we ought to persevere and not give up. This is enshrined in the phrase 'try, try and try again'. Three seems to be the right number of times to try. Two isn't enough but four is too many. Think of every time you've seen a drama in which a character tries to unlock a door with an set of unfamiliar keys. The first key fails, the second key fails - it is always the third that works.
And on its relatonship to the American version, third time's the charm:
This may be an variant of the earlier 'third time lucky' or it may have arisen independently in the USA.
A citation is given of this phrase from 1912.
EDIT:
Please don't vote this answer up. Google Books tells a different story. See my other answer.
Solution 3:
Jewish tradition teaches that a thing done three times is a chazakah, something the Talmud (Jewish code of legal authority written between 200-800ce) says has the strength of tangible property, something done with the strength of habit and Law.