What is the origin of the phrase "needle in a hay stack"?

What is the origin of the phrase "needle in a hay stack"? Initially I thought it was a game once played but I haven't found any mention of it outside of it's idiomatic use.


The idiom in full is: "like looking for a needle in a haystack" it is based on the idea that it is very hard to find a sewing needle in a haystack (a tall pile of dry grass). It means when something is extremely difficult (or impossible) to find.

The first example of this idea in print was in the works of St. Thomas More in 1532:

"To seek out one line in his bookes would be to go look (for) a needle in a meadow."

Source: Data Hiding: Exposing Concealed Data in Multimedia, Operating Systems, Mobile Devices and Network Protocols; Michael T. Raggo, Chet Hosmer

enter image description here


Not only is a needle in a haystack nearly impossible to find (without a magnet), but more importantly it is very dangerous for the animals consuming the hay. It is a problem with a dire consequence if the solution is not found. We're talking about having to burn the haystack or let a horse swallow a needle. I think this is closer to the meaning of the phrase.