Surah Al-Baqarah 2:251
فَهَزَمُوهُم بِإِذۡنِ ٱللَّهِ وَقَتَلَ دَاوُۥدُ جَالُوتَ وَءَاتَىٰهُ ٱللَّهُ ٱلۡمُلۡكَ وَٱلۡحِكۡمَةَ وَعَلَّمَهُۥ مِمَّا يَشَآءُۗ وَلَوۡلَا دَفۡعُ ٱللَّهِ ٱلنَّاسَ بَعۡضَهُم بِبَعۡضٍ لَّفَسَدَتِ ٱلۡأَرۡضُ وَلَٰكِنَّ ٱللَّهَ ذُو فَضۡلٍ عَلَى ٱلۡعَٰلَمِينَ ٢٥١
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.
پس به خواست خدا ايشان را بشكستند و داود جالوت را بكشت و خدا به او پادشاهى و حكمت داد، و آنچه مىخواست به او بياموخت. و اگر خدا بعضى از مردم را به وسيله بعضى ديگر دفع نمىكرد، زمين تباه مى شد، ولى خدا بر جهانيان فضل و كرم خويش را ارزانى مىدارد.