And they defeated them by Allah’s leave, and David killed Goliath, and Allah gave him sovereignty and wisdom, and taught him as He willed. Were it not for Allah restraining the people, some by means of others, the earth would have gone to ruin. But Allah is gracious towards mankind.