2:58
وَإِذْ قُلْنَا ادْخُلُوا هَذِهِ الْقَرْيَةَ فَكُلُوا مِنْهَا حَيْثُ شِئْتُمْ رَغَدًا وَادْخُلُوا الْبَابَ سُجَّدًا وَقُولُوا حِطَّةٌ نَغْفِرْ لَكُمْ خَطَايَاكُمْ وَسَنَـزِيدُ الْمُحْسِنِينَ
2:59
فَبَدَّلَ الَّذِينَ ظَلَمُوا قَوْلا غَيْرَ الَّذِي قِيلَ لَهُمْ فَأَنْـزَلْنَا عَلَى الَّذِينَ ظَلَمُوا رِجْزًا مِنَ السَّمَاءِ بِمَا كَانُوا يَفْسُقُونَ
So at this point, bani israil are meant to enter a qaryah, or a town. This marks a new phase in their evolution (or devolution as the case may be). They are given a given a choice in how to consume but also to humble themselves as they enter the door. The ‘muhsineen’ at the end of 2/58 shows the propensity to do good comes with sajda.
This fisq (lack of drive for striving) led them to change the saying given them to them (tabdeeli qawlan) and for them to turn oppressors. So a dirt (rijz) was sent down to heaven for them.