Surah al-Baqarah
251. And they defeated them by Allah’s will, and David killed Goliath. And Allah gave him sovereignty and wisdom, and He taught him of what He willed. Were it not for Allah’s repelling people, some by means of others, the earth would have gone to ruin. But Allah is gracious towards humanity.