So they put them to flight by Allah's permission. And David slew Goliath, and Allah gave him kingdom and wisdom, and taught him of what He pleased. And were it not for Allah's repelling some men by others, the earth would certainly be in a state of disorder: but Allah is Full of grace to the worlds.