Explanation
While three men were walking, it rained and they took refuge in a cave. Then a rock fell and blocked the mouth of the cave. They said to each other: Invoke Allah with the best deed that you have performed so that perhaps He will remove your distress and move this rock away.
One of them said: "O Allah, I had an old father and mother. And I used to go out for grazing my camels, and when I returned home, I would milk the camels and bring the milk to my parents to drink therefrom. After them, I would let my young children, wife, and the rest of my family, such as brothers and sisters, drink from it. One night, some emergency delayed me, and when I turned back, I found my parents asleep. I milked the camels as usual and stood near my parents, disliking to awaken them or to let my children and family drink before them. The children were crying out of extreme hunger. Nevertheless, we remained in this condition till dawn, after which they woke up and I gave them the milk to drink before I gave my children any. O Allah, if You know that I did this to win Your pleasure, remove this rock a little bit so that we can see the sky." So Allah caused the rock to move a little, enabling them to see the sky.
The second man said: "O Allah, I loved a cousin of mine intensely. I tried to seduce her, but she stipulated that I should pay her one hundred dinars to fulfill my desire. I collected the required amount and gave it to her; and when I sat in between her legs, she said to me: 'Fear Allah and do not commit the illegal act, and do not deflower me except lawfully.' Thereupon, I got up and left her. O Allah, if You know that I did this in pursuit of Your pleasure, remove this rock a little." So Allah, the Almighty, caused two thirds of the rock to move.
The third man said: "O Allah, I employed a worker to do some work for me in return for 16 pounds of maize. When he finished the job, I wanted to pay him, but he refused to take his wage, so I took the maize and cultivated it, and I kept cultivating and selling it until I bought cows and a shepherd with its price. Later, this worker came to claim his dues, saying: 'O slave of Allah, give me my right.' I said to him: 'Go to those cows and the shepherd and take them, for they are all yours.' He thought that I was mocking him, but I affirmed that I was not, and I again told him that the cows and the shepherd were his. O Allah, if You know that I did this in pursuit of Your pleasure, remove the rock." Thereupon, Allah, the Almighty, caused the rock to move from the remaining part of the cave's mouth, so they exited it.