And We gave them clear proofs of the matter [of religion]. And they did not differ except after knowledge had come to them - out of jealous animosity between themselves. Indeed, your Lord will judge between them on the Day of Resurrection concerning that over which they used to differ.
Preference of Allah to the Children of Israel and their dispute thereafter
Allah the Exalted mentions the favors He granted the Children of Israel, such as revealing the Divine Books to them, sending the Messengers to them and granting them kingship. Allah said,
(And indeed We gave the Children of Israel the Scripture, and the understanding of the Scripture and its laws, and the prophethood; and provided them with good things,) such as foods and drinks,
وَفَضَّلْنَـهُمْ عَلَى الْعَـلَمينَ
(and preferred them above the nations.) of their time,
These verses purport to confirm the risalah of the Final Messenger of Allah ﷺ . Under this subject-matter, the Prophet of Allah ﷺ is consoled for the persecution carried out by the enemies against him.
إِنَّ رَبَّكَ يَقْضِي بَيْنَهُمْ ("...Surely your Lord will judge between them, on the Day of Judgment, in the matters in which they used to differ... 45:17) " This far the verses confirm two points: This verse purports to say, firstly, that the Book of Musa (علیہ السلام) contains many clear prophecies about the advent of the Holy Prophet ﷺ and, secondly to comfort the Holy Prophet ﷺ that the Israelites rejected him not because there was any dearth of arguments, signs and Divine prophecies to support and establish his claim, but because of jealousy, love of the world and personal desires, that is, they did not like the very idea that the Final Messenger ﷺ should have appeared from among the non-Israelites . (Bayan-ul-Qur’ an).
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 15–19
Those who do not firmly believe that the Day of Judgement is going to dawn on them, venture to oppress others. They harass the preacher of Truth in every possible way. At that time feelings of revenge may develop in the heart of the preacher, but he should be forgiving towards his addressees. He should concentrate all his attention on the work of his mission and leave the matter of dealing with others’ evil deeds in the hands of God. The value of the preacher’s efforts is not assessed on the basis of the number of persons he has influenced and brought on to the path of Truth. The value of his performance in the eyes of God depends upon the extent to which he remained steadfastly dedicated to the Truth; and to what degree he himself exemplified the behaviour expected of him.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.