Bismillaah
Both Bukhari and Muslim relate in their compilations from Abu Hurairah radhiyAllaahu anhu that he heard Allaah’s Messenger, salAllaahu alayhi wasallam say:
There were three from the Children of Israel – the leper, the baldheaded man, and the blind man – and Allaah (the Exalted) decided to test them, so he sent to them an angel, who went first to the leper and said, “What is most beloved to you?” He said, “Good colour and good skin, for the people are disgusted by me.” The angel touched him and his affliction went away: he was now given good colour and good skin. The angel asked, “And what wealth is most beloved to you?” He said, “Camels,” or he said, “Cows.” (He wasn’t sure, either it was the leper or the baldheaded man who said camels, while it was the other who said cows.) He was given a pregnant camel, and the angel said, “May you be blessed with it.”
He then went to the baldheaded man and said, “What is most beloved to you?” He said, “Good hair and to be cured of this disease; indeed people are repelled by me.” Then the angel touched him; his affliction went away, and he was given good hair. The angel then asked, “And what wealth is most beloved to you?” He said, “Cows.” The angel gave him a pregnant cow and said, “May you be blessed with it.”
He then went to the blind man and said, “What is most beloved to you?” He said, “For Allaah to return to me my sight, so that with it I can see people.” Then the angel touched him and Allaah returned to him his sight. The angel asked, “And what wealth is most beloved to you?” He said, “Sheep.” So he gave him one pregnant sheep and the livestock of each one of them reproduced, so that the first had a valley of camels, while the second had a valley of cows, and the third had a valley full of sheep.
Then the angel came to the leper in the shape of a man, and said, “I am a poor man who has run out of means during his travel. Today, I will not find that which I need to continue my travel except through Allaah and then through you. I ask you by the One Who has given you good colour and good skin and wealth, to give me one camel upon which I may complete my journey.” He said, “Indeed the rights (of others upon me) are many (i.e., I have a large family for whom I must provide).” The angel said to him, “It seems that I know you; were you not a leper, who people found to be repulsive? A poor man, and Allaah gave you wealth?” He said, “Indeed, I have inherited from my forebears.” He said, “If you are lying, then may Allaah change you back to your previous state.”
He then went to the baldheaded man, again in the guise of a man, and said the same words that he said to the leper. The baldheaded man responded in the same manner that the leper did. The angel said, “If you are lying, then may Allaah change you back to your previous state.”
He then went to the blind man, yet again in the shape of a man, and said, “I am a poor man who is cut off from his journey. Today, I have no means for reaching my destination except through Allaah and then through you. I ask you by the One Who has returned to you your sight; to give me one sheep with which I may complete my journey.” He said, “Indeed I was blind and Allaah returned to me my sight, poor and he made me rich, so take whatever you desire, for by Allaah I will not hold back anything from you today that you take for Allaah.” The angel said, “Keep your wealth, for indeed you were only tested; indeed Allaah is pleased with you and is angry with your two companions.” (Sahih Bukhari and Sahih Muslim)