We divided them into twelve tribes , nations ; and We inspired Moses , when his people asked him for water , saying : Smite with thy staff the rock ! And there gushed forth therefrom twelve springs , so that each tribe knew their drinking-place .