The original legend was that the Lord Allah sent the horses away to the watering place when they had not drunk for some time, he called them back before they got there to see who would obey him above their instincts. Only the mares turned back at the bidding of their master, to these he gave a special mark, where he put his hand he said 'that from this day they shall carry my thumb print, this is a sign that they are the Chosen Ones of the Lord Allah' and thats how the story became legend, whether or not its has any grain of truth is another matter, but still a nice story.