Allah said, "Remember My favor on you when I answered the supplication of your Prophet, Musa, when he asked Me to provide you with water. I made the water available for you, making it gush out through a stone. Twelve springs burst out of that stone, a designated spring for each of your tribes. You eat from the manna and the quails and drink from the water that I provided for you, without any effort or hardship for you. So worship the One Who did this for you.
﴿وَلاَ تَعْثَوْاْ فِى الاٌّرْضِ مُفْسِدِينَ﴾
(And do not act corruptly, making mischief on the earth) meaning, "Do not return the favor by committing acts of disobedience that cause favors to disappear.''
Ibn `Abbas said that the Children of Israel, "Had a square stone that Musa was commanded to strike with his staff and, as a result, twelve springs burst out of that stone, three on each side. Each tribe was, therefore, designated a certain spring, and they used to drink from their springs. They never had to travel from their area, they would find the same bounty in the same manner they had in the first area.''This narration is part of the long Hadith that An-Nasa'i, Ibn Jarir and Ibn Abi Hatim recorded about the trials.
This story is similar to the story in Surat Al-`Araf (Chapter 7) although the latter was revealed in Makkah. In Surat Al-A`raf, Allah used the third person when He mentioned the Children of Israel to the Prophet and narrated what He favored them with. In this Surat Al-Baqarah, which was revealed in Al-Madinah, Allah directed His Speech at the Children of Israel. Further, Allah said in Surat Al-A`raf,
﴿فَانبَجَسَتْ مِنْهُ اثْنَتَا عَشْرَةَ عَيْنًا﴾
(And there gushed forth out of it twelve springs) (7:160), describing what first occurred when the water begins to gush out. In the Ayah in Surat Al-Baqarah, Allah described what happened later on, meaning when the water burst out in full force. Allah knows best.
﴿وَإِذْ قُلْتُمْ يَـمُوسَى لَن نَّصْبِرَ عَلَى طَعَامٍ وَحِدٍ فَادْعُ لَنَا رَبَّكَ يُخْرِجْ لَنَا مِمَّا تُنبِتُ الأَرْضُ مِن بَقْلِهَا وَقِثَّآئِهَا وَفُومِهَا وَعَدَسِهَا وَبَصَلِهَا قَالَ أَتَسْتَبْدِلُونَ الَّذِى هُوَ أَدْنَى بِالَّذِى هُوَ خَيْرٌ اهْبِطُواْ مِصْرًا فَإِنَّ لَكُم مَّا سَأَلْتُمْ﴾
(61. And (remember) when you said, "O Musa ! We cannot endure one kind of food. So invoke your Lord for us to bring forth for us of what the earth grows, its herbs, its cucumber its Fum, its lentils and its onions.'' He said, "Would you exchange that which is better for that which is lower Go you down to any town and you shall find what you want!'')
﴿وَضُرِبَتْ عَلَيْهِمُ الذِّلَّةُ وَالْمَسْكَنَةُ وَبَآءُوا بِغَضَبٍ مِّنَ اللَّهِ ذَلِكَ بِأَنَّهُمْ كَانُواْ يَكْفُرُونَ بِآيَـتِ اللَّهِ وَيَقْتُلُونَ النَّبِيِّينَ بِغَيْرِ الْحَقِّ ذلِكَ بِمَا عَصَواْ وَّكَانُواْ يَعْتَدُونَ﴾
(61 cont. - And they were covered with humiliation and misery, and they drew on themselves the wrath of Allah. That was because they used to disbelieve in the Ayat (proofs, evidence) of Allah and killed the Prophets wrongfully. That was because they disobeyed and used to transgress the bounds (in their disobedience to Allah, i.e. commit crimes and sins.)) (2:61)