Quran 18:21 — The Cave (Al-Kahf)
وَكَذٰلِكَ أَعثَرنا عَلَيهِم لِيَعلَموا أَنَّ وَعدَ اللَّهِ حَقٌّ وَأَنَّ السّاعَةَ لا رَيبَ فيها إِذ يَتَنٰزَعونَ بَينَهُم أَمرَهُم ۖ فَقالُوا ابنوا عَلَيهِم بُنيٰنًا ۖ رَبُّهُم أَعلَمُ بِهِم ۚ قالَ الَّذينَ غَلَبوا عَلىٰ أَمرِهِم لَنَتَّخِذَنَّ عَلَيهِم مَسجِدًا
We caused them to be discovered, to let everyone know that GOD's promise is true, and to remove all doubt concerning the end of the world.* The people then disputed among themselves regarding them. Some said, "Let us build a building around them." Their Lord is the best knower about them. Those who prevailed said, "We will build a place of worship around them."
[18:20] "If they discover you, they will stone you, or force you to revert to their religion, then you can never succeed."
[18:22] Some would say, "They were three; their dog being the fourth," while others would say, "Five; the sixth being their dog," as they guessed. Others said, "Seven," and the eighth was their dog. Say, "My Lord is the best knower of their number." Only a few knew the correct number. Therefore, do not argue with them; just go along with them. You need not consult anyone about this.