We divided them up into twelve tribes , each a whole community , and We revealed Our will to Moses , when his people asked for water , saying , " Strike the rock with your staff . " Twelve springs gushed from it and each tribe knew its drinking place .