You would have thought they were awake, though they lay asleep. We turned them over, to the right and the left, while their dog lay at the cave's entrance with legs outstretched. Had you looked down and seen them, you would have surely turned your back and fled in terror. 18 And similarly We awakened them so that they may enquire about each other; a speaker among them said, “How long have you stayed here?” Some among them said, “We have stayed a day or part of a day”; the others said, “Your Lord well knows how long you have stayed; therefore send one of you to the city with this silver coin – he may then check which food available there is purer, in order to bring some of it for you to eat – and he must be courteous and not inform anyone about you.” 19 Indeed, if they come to know of you, they will stone you or return you to their religion. And never would you succeed, then - ever." 20 And similarly, We caused them to be found that they [who found them] would know that the promise of Allah is truth and that of the Hour there is no doubt. [That was] when they disputed among themselves about their affair and [then] said, "Construct over them a structure. Their Lord is most knowing about them." Said those who prevailed in the matter, "We will surely take [for ourselves] over them a masjid." 21 (Some) say: (They are) three, the fourth of them being their dog; and (others) say: Five, the sixth of them being their dog, making conjectures at what is unknown; and (others yet) say: Seven, and the eighth of them is their dog. Say: My Lord best knows their number, none knows them but a few; therefore contend not in the matter of them but with an outward contention, and do not question concerning them any of them. 22