Surah Al-Kahf, ayah 21

18:21

وَكَذَٰلِكَ أَعۡثَرۡنَا عَلَيۡهِمۡ لِيَعۡلَمُوٓاْ أَنَّ وَعۡدَ ٱللَّهِ حَقّٞ وَأَنَّ ٱلسَّاعَةَ لَا رَيۡبَ فِيهَآ إِذۡ يَتَنَٰزَعُونَ بَيۡنَهُمۡ أَمۡرَهُمۡۖ فَقَالُواْ ٱبۡنُواْ عَلَيۡهِم بُنۡيَٰنٗاۖ رَّبُّهُمۡ أَعۡلَمُ بِهِمۡۚ قَالَ ٱلَّذِينَ غَلَبُواْ عَلَىٰٓ أَمۡرِهِمۡ لَنَتَّخِذَنَّ عَلَيۡهِم مَّسۡجِدٗا ٢١

Wakadhālika a'tharnā 'alayhim liya'lamū anna wa'dallāhi haqqun wa annas-sā'ata lā rayba fīhā idh yatanāza'ūna baynahum amrahum faqālubnū 'alayhim bunyānar rabbuhum a'lamu bihim qālal-ladhīna ghalabū 'alā amrihim lanattakhidhanna 'alayhim masjidā

And similarly, We caused them to be found that they [who found them] would know that the promise of Allāh is truth and that of the Hour there is no doubt. [That was] when they783 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."784

Footnotes

783 The people of the city.

784 i.e., we will make this site a place of worship.