Qur'an
Surah 2 2:252
تِلۡكَ ءَایَـٰتُ ٱللَّهِ نَتۡلُوهَا عَلَیۡكَ بِٱلۡحَقِّۚ وَإِنَّكَ لَمِنَ ٱلۡمُرۡسَلِینَ ۝٢٥٢
These are the revelations of God which We recite to you [Muhammad] with the truth, and you truly are one of the messengers

When the faithful party, who were few under the command of Talut, faced their enemy, who were many under the command of Jalut,
قَالُواْ رَبَّنَآ أَفْرِغْ عَلَيْنَا صَبْرًا
(they invoked: "Our Lord! Pour forth on us patience...") meaning, send down patience on us from You.
وَثَبِّتْ أَقْدَامَنَا
(and set firm our feet) meaning, against the enemy and save us from running away and from feebleness,
وَانصُرْنَا عَلَى الْقَوْمِ الْكَـفِرِينَ
(and make us victorious over the disbelieving people.)
Allah said:
فَهَزَمُوهُم بِإِذْنِ اللَّهِ
(So they routed them by Allah's leave) meaning, they defeated and overwhelmed them by Allah's aid and support. Then,
وَقَتَلَ دَاوُودُ جَالُوتَ
(and Dawud killed Jalut)
Israelite accounts claimed that (Prophet) David killed Goliath with a slingshot that he had, which he launched at Goliath causing his death.
Talut promised that whoever killed Jalut, would marry his daughter and would share his kingship and authority. He kept his promise. Later, the kingship was transferred to Prophet Dawud in addition to being granted Prophethood by Allah. So, Allah said:
وَآتَـهُ اللَّهُ الْمُلْكَ
(...and Allah gave him (Dawud) the kingdom) that Talut had and,
وَالْحِكْــمَةِ
(and Al-Hikmah) that comes with the prophethood, meaning, after Shamwil. Allah then said:
وَعَلَّمَهُ مِمَّا يَشَآءُ
(and taught him of that which He willed.) meaning, what He willed of the knowledge that He bestowed on (Prophet) Dawud.
Next, Allah said:
وَلَوْلاَ دَفْعُ اللَّهِ النَّاسَ بَعْضَهُم بِبَعْضٍ لَفَسَدَتِ الأَرْضُ
(And if Allah did not check one set of people by means of another, the earth would indeed be full of mischief.)
This Ayah indicates that if it were not for the fact that Allah checks one set of people with another, such as when Talut and the bravery of Dawud helped the Children of Israel (against Goliath), then people would have perished. Similarly, Allah said:
وَلَوْلاَ دَفْعُ اللَّهِ النَّاسَ بَعْضَهُمْ بِبَعْضٍ لَّهُدِّمَتْ صَوَمِعُ وَبِيَعٌ وَصَلَوَتٌ وَمَسَـجِدُ يُذْكَرُ فِيهَا اسمُ اللَّهِ كَثِيراً
(For had it not been that Allah checks one set of people by means of another, monasteries, churches, synagogues, and Masjids, wherein the Name of Allah is mentioned much, would surely, have been pulled down.) (22:40)
Allah then said:
وَلَـكِنَّ اللَّهَ ذُو فَضْلٍ عَلَى الْعَـلَمِينَ
(But Allah is full of bounty to the `Alamin (mankind, Jinn and all that exists)) meaning, by His mercy and favor He fixes some of them by some others. Surely, Allah has the wisdom, the supreme authority and the clear proof against His creation in all of His actions and statements.
Allah said:
تِلْكَ آيَـتُ اللَّهِ نَتْلُوهَا عَلَيْكَ بِالْحَقِّ وَإِنَّكَ لَمِنَ الْمُرْسَلِينَ
(These are the verses of Allah, We recite them to you (O Muhammad ) in truth, and surely, you are one of the Messengers (of Allah).)
This Ayah states, `These Ayat (verses) of Allah that We have narrated for you in truth conform to the exact manner that these stories have occurred and to the truth that still remain in the (Divine) Books that the scholars of the Children of Israel have and know. Allah said: O Muhammad,
وَأَنَّكَ
(you are)
لَمِنَ الْمُرْسَلِينَ
(one of the Messengers (of Allah)) emphatically stating the truth of his prophethood

(These are the revelations of Allah) i.e. the Qur'an which relates the events of past nations (which We recite unto thee (Muhammad)) which We send Gabriel with to you (with Truth) to exposit the Truth and falsehood, (and lo! thou art of the number of (the) messengers) to all human beings and jinn;

EN

These verses are the verses of God We recite to you O Muhammad (s) as narration in truth and assuredly you are one of the Messengers of God the emphasis is made here with the particle inna of innaka ‘surely you are’ with the remainder of the statement being a rebuttal of the disbelievers’ saying ‘You are no Messenger’.

EN

Since the affirmation of the prophethood of the noble Messenger of Allah is also a major objective of the Holy Qur'an, it has been so asserted as and when the occasion warrants. That he is correctly reporting the event (in verses 246-251), while he neither learnt it from someone nor heard it anywhere nor saw it, is a miracle which is a sound proof of his prophethood. Verse 252 here (and verse 253 which follows) demonstrate this proof.
It is being said here that these verses in which this event has been mentioned 'are the verses of Allah that We recite to you with all veracity' and this proves that you are certainly among the Messengers.'

EN

Literally ‘We favoured some above others’.