Sura Al-Baqara

2:251

فَهَزَمُوهُم بِإِذْنِ ٱللَّهِ وَقَتَلَ دَاوُۥدُ جَالُوتَ وَءَاتَىٰهُ ٱللَّهُ ٱلْمُلْكَ وَٱلْحِكْمَةَ وَعَلَّمَهُۥ مِمَّا يَشَآءُ ۗ وَلَوْلَا دَفْعُ ٱللَّهِ ٱلنَّاسَ بَعْضَهُم بِبَعْضٍۢ لَّفَسَدَتِ ٱلْأَرْضُ وَلَٰكِنَّ ٱللَّهَ ذُو فَضْلٍ عَلَى ٱلْعَٰلَمِينَ

Och med Guds vilja besegrade de dem och drev dem på flykten. Och David dödade Goliat och Gud gav honom makt och visdom och all den kunskap Han ville. Och om Gud inte höll tillbaka [vissa] människor med andra [som redskap], skulle jorden helt visst fördärvas. Men Gud låter nåden flöda över hela Sin skapelse.

Tafsir 2:251

They defeated them by God’s will. The prophet of God, David, killed their leader Goliath and God gave him kingship and prophethood and taught him many sciences as He willed, including those that are beneficial for this world and those for the hearafter. If it were not the system of God to drive back the evil of some people by means of others, there would be corruption on earth as the evil ones would gain authority. However, God is Bountiful to all of His creation.