What is the origin of the term 'Luck of the Irish?

the term originates from many centuries ago when an Irishman by the name of Times Shermend was out in the vally and drank so much whiskey that he ended up stumbling off a huge cliff and landed in a huge patch of clovers that saved his life. This explains why Irishmen love the clover

I'm not sure what the origin of the term is but it's not this stupid answer.