251st Ayah from Surah Al Baqarah
Sahih International
So they defeated them by permission of Allah, and David killed Goliath, and Allah gave him the kingship and prophethood and taught him from that which He willed. And if it were not for Allah checking [some] people by means of others, the earth would have been corrupted, but Allah is full of bounty to the worlds.
Abdul Haleem
and so with God’s permission they defeated them. David killed Goliath, and God gave him sovereignty and wisdom and taught him what He pleased. If God did not drive some back by means of others the earth would be completely corrupt, but God is bountiful to all.
Mohsin Khan/Hilali
So they routed them by Allah's Leave and Dawud (David) killed Jalut (Goliath), and Allah gave him [Dawud (David)] the kingdom [after the death of Talut (Saul) and Samuel] and Al-Hikmah (Prophethood), and taught him of that which He willed. And if Allah did not check one set of people by means of another, the earth would indeed be full of mischief. But Allah is full of Bounty to the 'Alamin (mankind, jinns and all that exists).
Taqi Usmani
So, they defeated them by the will of Allah, and Dāwūd (David) killed Jālūt, and Allah gave him the kingdom and the wisdom and taught him what He willed. Had Allah not been pushing back some people by means of others, the earth would have been spoiled. But Allah is All-Gracious to all the worlds.