58وَإِذْ قُلْنَا ٱدْخُلُوا۟ هَـٰذِهِ ٱلْقَرْيَةَ فَكُلُوا۟ مِنْهَا حَيْثُ شِئْتُمْ رَغَدًا وَٱدْخُلُوا۟ ٱلْبَابَ سُجَّدًا وَقُولُوا۟ حِطَّةٌ نَّغْفِرْ لَكُمْ خَطَـٰيَـٰكُمْ ۚ وَسَنَزِيدُ ٱلْمُحْسِنِينَ
59فَبَدَّلَ ٱلَّذِينَ ظَلَمُوا۟ قَوْلًا غَيْرَ ٱلَّذِى قِيلَ لَهُمْ فَأَنزَلْنَا عَلَى ٱلَّذِينَ ظَلَمُوا۟ رِجْزًا مِّنَ ٱلسَّمَآءِ بِمَا كَانُوا۟ يَفْسُقُونَ
[58-59] Then call to mind the time when We said, "Go into the town'74 before you and eat to your hearts' content therein, wherefrom you will, but enter the gate bowing down with humility, repeating 'hittatun';75 We will forgive your sins and increase the reward of the righteous". But the transgressors perverted the words said to them entirely into a different thing. So We sent down upon the transgressors a severe torment from the sky : that was the punishment for the disobedience they were showing.
74The identity of the town has not so far been determined. As this incident took place when the Israelites were still wandering in the Sinai Peninsula, most probably it was situated somewhere there. But it is also possible that it might have been Shittim which was situated on the eastern bank of the Jordan, opposite to Jericho. According to the Bible, the Israelites conquered this city during the last years of Moses and committed debaucheries. Consequently, Allah inflicted a terrible punishment on them in the form of an epidemic which killed twenty-four thousand of them. (Numbers, 25: 1-9).
75They were told not to enter the town like cruel and ruthless tyrants but to go in meekly and with humility like God-fearing people, just as the Prophet Muhammad (Allah's peace be upon him) did at the conquest of Makkah. "Hittatun" can have two meanings: "You should enter the town, (1) begging Allah's forgiveness for sins, and (2) granting general amnesty and refraining from plundering and murdering the inhabitants."