Once Akbar1, moghul emperor of India, wanted to go out to hunt with his court jester/advisor/friend Birbal. They get on their horses and went into the forest to find animals to hunt2. Couple of times, Akbar saw some animals and tried to shoot and missed. Birbal kept saying, "it's all for good. It's all happening for a reason". Akbar was annoyed, but still put up with it.
When it happened too many times, Akbar got annoyed and sent an arrow towards Birbal to caution him. But he accidentally chopped off the tip of his thumb. He lost the tip of a thumb. Birbal again murmurs his old adage, "Everything happens for a reason". This really annoyed the king to no end, that he orders his guards to take Birbal away to be hanged at dawn. The guards did.
Now the king is on his own. The forest they were hunting in, had tribals that didn't like outsiders. If they caught them, they would sacrifice the outsiders to their Gods. Not knowing any of these, Akbar wanders around and then right into their hands. There was a huge commotion. He was brought before the head shaman who inspected the king thoroughly. Suddenly, they were untying him. Then they were yelling at him to go away. Not understanding a word of it, he ran back as fast as he could to his palace.
He went to the jail to see Birbal. He was about to be taken out for execution. King orders them to stop. He tells Birbal what happened and that he was sorry. As he found out, when he lost a thumb he was blemished and the tribesmen rejected him to be the sacrifical body as he was blemished! Birbal said, see "Everything happens for a reason" to which Akbar gladly agreed.
The king then asks Birbal how come it didn't apply to Birbal that he was about to lose his life in vain? Birbal calmly said, "Oh king! It did for me as well. Imagine you didn't kick me out and we both got caught! I would have been the unblemished one and I cannot imagine my fate then!". Akbar realized the truth in it and hugged his friend and apologized again.