وَمَآ أَرْسَلْنَا مِن قَبْلِكَ مِن رَّسُولٍ إِلَّا نُوحِىٓ إِلَيْهِ أَنَّهُۥ لَآ إِلَٰهَ إِلَّآ أَنَا۠ فَٱعْبُدُونِ٢٥
“We never sent before you [O Prophet] any messenger without revealing to him that none has the right to be worshiped except Me, so worship Me.”
[ ↗ Study from physical print edition ]And We sent not before you any messenger except that We revealed to him that, "There is no deity except Me, so worship Me."
[ ↗ Study from physical print edition ]25. And I have not sent before you, O Messenger, any messenger except that I revealed to him that there is no true god except Me, so worship Me alone and do not associate any partner with Me.
And We did not send any Messenger before you but We revealed to him read nūhī or yūhā ‘but it was revealed to him’ that ‘There is no god except Me so worship Me’ that is affirm My Oneness.
هَـٰذَا ذِكْرُ مَن مَّعِيَ وَذِكْرُ مَن قَبْلِي (Here is the Message for those with me and the Message for those before me. - 21: 24) One explanation of this verse on which the translation is based is that ذِکر means Message and "Message for those with me" refers to Qur'an, while "the Message for those before me" refers to Torah, Injil (Evangel) and Zabur (Psalms), the earlier divine books. According to this interpretation, the meaning of the verse is that neither the Qur'an (which is the Book for the Holy Prophet ﷺ and his followers) nor the older books contain anything to suggest worship of anyone else but Allah. Despite the fact that the texts of Torah and Injil (Evangel) have been altered, it is not suggested in either of them that Allah has partners with whom he shares His authority. Another explanation of the verse is given in Al-Bahr ul-Muhit according to which the word (dhikr) means here "description", and the sense is that this Qur'an is a description for the people who were in the days of the Holy Prophet ﷺ which describes for them the rules of Shari'ah and invites them to the correct way of life. At the same time it is a description of those who were before the Holy Prophet ﷺ because it keeps alive the stories and the traditions of people long gone by.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)قَوْلُهُ تَعَالَى: ﴿وَما أَرْسَلْنا مِنْ قَبْلِكَ مِنْ رَسُولٍ إِلَّا نُوحِي إِلَيْهِ﴾ [[. (يوحى) بالياء قراءة (نافع).]] وَقَرَأَ حَفْصٌ وَحَمْزَةُ وَالْكِسَائِيُّ: "نُوحِي إِلَيْهِ" بِالنُّونِ، لِقَوْلِهِ: "أَرْسَلْنا". (أَنَّهُ لَا إِلهَ إِلَّا أَنَا فَاعْبُدُونِ) أَيْ قُلْنَا لِلْجَمِيعِ لَا إِلَهَ إلا الله، فأدل الْعَقْلِ شَاهِدَةٌ أَنَّهُ لَا شَرِيكَ لَهُ، وَالنَّقْلُ عَنْ جَمِيعِ الْأَنْبِيَاءِ مَوْجُودٌ، وَالدَّلِيلُ إِمَّا مَعْقُولٌ وَإِمَّا مَنْقُولٌ. وَقَالَ قَتَادَةُ: لَمْ يُرْسَلْ نَبِيٌّ إِلَّا بِالتَّوْحِيدِ، وَالشَّرَائِعُ مُخْتَلِفَةٌ فِي التَّوْرَاةِ وَالْإِنْجِيلِ والقرآن، وكل ذلك على الإخلاص والتوحيد.