The Heights - 7:168 We divided them into communities on the earth, some of them were good and some of them were lowly. We tested them with good and evil lest they should turn back.
Related:
The Table Spread/5:12 "Allah had taken a promise from the Children of Israel and We sent twelve leaders from among them. Allah said: "I am with you if you observe the prayer, pay the zakat, believe in My messengers and respect them, and lend to Allah a good debt. I will cover your sins and give you gardens in which rivers flow. So whoever of you disbelieves after that has gone astray from the right path."

The Cow/2:60 "Moses once sought water for his people. We said, "Strike the stone with your staff."Thereupon twelve springs gushed forth from the stone. Each tribe knew the spring allotted for drinking: "Eat and drink of the provision of Allah, and do not go about in the earth making mischief."