وَمَآ أُمِرُوٓا۟ إِلَّا لِيَعْبُدُوا۟ ٱللَّهَ مُخْلِصِينَ لَهُ ٱلدِّينَ حُنَفَآءَ وَيُقِيمُوا۟ ٱلصَّلَوٰةَ وَيُؤْتُوا۟ ٱلزَّكَوٰةَ ۚ وَذَٰلِكَ دِينُ ٱلْقَيِّمَةِ٥
although they were commanded only to worship Allah with sincere devotion to Him, being inclined to the true faith, and to establish prayer and give zakah; that is the true religion.
[ ↗ Study from physical print edition ]And they were not commanded except to worship Allah, [being] sincere to Him in religion, inclining to truth, and to establish prayer and to give zakah. And that is the correct religion.
[ ↗ Study from physical print edition ]5. The criminality and stubbornness of the Jews and the Christians is evident, in that they have not been commanded in this Qur’ān, except to do those very things they have been commanded to do in both their books, i.e. worshipping Allah alone, refraining from ascribing partners to Him, establishing prayer and giving in Zakat. So whatever they have been commanded to do, is actually the straight religion in which there is no deviance.
And they were only commanded in their Scripture the Torah and the Gospel to worship God illā li-ya‘budū means illā an ya‘budū an having been omitted and the lām added devoting religion purely to Him free of any idolatry as hanīfs upright in following the religion of Abraham and the religion of Muhammad (s) when he would come — so how is it that they disbelieved in him? and to establish prayer and pay the alms. That is the upright religion the upright creed.
Verse [ 5] وَذَٰلِكَ دِينُ الْقَيِّمَةِ (And that is the way of the straight religion.) The word qayyimah [ the straight ] is apparently the qualifier of the noun kutub [ Books ] which occurred earlier. Some treat the adjective as qualifying the noun millah [ religion ]. The verse purports to say that Allah commanded the People of the former Scriptures that they should render full and sincere obedience to Divine commandments, that is, to worship Allah alone. They should also establish the regular prayers and pay the obligatory alms. Then the Qur'an reminds them that this is not their distinctive feature exclusively. All former religions that are upright and received Books from Allah have the same features. This is the true religion of all the Prophets (علیہم السلام) that they preached to their respective people. It would appear that the phrase hutubun qayyimah [(right and) straight writings ], contextually, refers to the Qur'anic ordinances and injunctions. From this point of view, the verse would signify that the ordinances and injunctions of the Shari` ah of the Holy Prophet Muhammad ﷺ are exactly the same as those that were given to them in their revealed Scriptures. They were not divergent so that they could find a pretext to oppose.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)فِيهِ ثَلَاثُ مَسَائِلَ: الْأُولَى- قَوْلُهُ تَعَالَى: ﴿وَما أُمِرُوا﴾ أَيْ وَمَا أُمِرَ هَؤُلَاءِ الْكُفَّارُ فِي التَّوْرَاةِ وَالْإِنْجِيلِ (إِلَّا لِيَعْبُدُوا اللَّهَ) أَيْ لِيُوَحِّدُوهُ. وَاللَّامُ فِي لِيَعْبُدُوا بِمَعْنَى (أَنْ)، كقوله: يُرِيدُ اللَّهُ لِيُبَيِّنَ [[آية ٢٦ سورة النساء.]] لَكُمْ [النساء: ٢٦] أي أن يبين. ويُرِيدُونَ لِيُطْفِؤُا نُورَ اللَّهِ [[آية ٨ سورة الصف.]] [الصف: ٨]. وأُمِرْنا لِنُسْلِمَ لِرَبِّ الْعالَمِينَ [[آية ٧١ سورة الانعام.]] [الانعام: ٧١]. وَفِي حَرْفِ عَبْدِ اللَّهِ: وَمَا أُمِرُوا إِلَّا أَنْ يَعْبُدُوا اللَّهَ. (مُخْلِصِينَ لَهُ الدِّينَ) أَيِ الْعِبَادَةَ، وَمِنْهُ قَوْلُهُ تَعَالَى: قُلْ إِنِّي أُمِرْتُ أَنْ أَعْبُدَ اللَّهَ مُخْلِصاً لَهُ الدِّينَ [[آية ١١ سورة الزمر.]] [الزمر: ١١]. وَفِي هَذَا دَلِيلٌ عَلَى وُجُوبِ النِّيَّةِ فِي الْعِبَادَاتِ فَإِنَّ الْإِخْلَاصَ مِنْ عَمَلِ الْقَلْبِ وَهُوَ الَّذِي يُرَادُ بِهِ وَجْهُ اللَّهِ تَعَالَى لَا غَيْرِهِ. الثَّانِيَةُ- قَوْلُهُ تَعَالَى: ﴿حُنَفاءَ﴾ أَيْ مَائِلِينَ عَنِ الْأَدْيَانِ كُلِّهَا، إِلَى دِينِ الْإِسْلَامِ، وَكَانَ ابْنُ عَبَّاسٍ يَقُولُ: حُنَفَاءُ: عَلَى دِينِ إِبْرَاهِيمَ عَلَيْهِ السَّلَامُ. وَقِيلَ: الْحَنِيفُ: مَنِ اخْتَتَنَ وَحَجَّ، قَالَهُ سَعِيدُ بْنُ جُبَيْرٍ. قَالَ أَهْلُ اللُّغَةِ: وَأَصْلُهُ أَنَّهُ تَحَنَّفَ إِلَى الْإِسْلَامِ، أَيْ مَالَ إِلَيْهِ. الثَّالِثَةُ- قَوْلُهُ تَعَالَى: ﴿وَيُقِيمُوا الصَّلاةَ﴾ أَيْ بِحُدُودِهَا فِي أَوْقَاتِهَا. (وَيُؤْتُوا الزَّكاةَ) أَيْ يُعْطُوهَا عِنْدَ مَحَلِّهَا. (وَذلِكَ دِينُ الْقَيِّمَةِ) أَيْ ذَلِكَ الدين الذي أمروا به دين القيمة، أَيِ الدِّينُ الْمُسْتَقِيمُ. وَقَالَ الزَّجَّاجُ: أَيْ ذَلِكَ دِينُ الْمِلَّةِ الْمُسْتَقِيمَةِ. والْقَيِّمَةِ: نَعْتٌ لِمَوْصُوفٍ مَحْذُوفٍ. أَوْ يُقَالُ: دِينُ الْأُمَّةِ الْقَيِّمَةِ بِالْحَقِّ، أَيِ الْقَائِمَةِ بِالْحَقِّ. وَفِي حَرْفِ عَبْدِ اللَّهِ وَذَلِكَ الدِّينُ الْقَيِّمُ. قَالَ الْخَلِيلُ: الْقَيِّمَةِ جَمْعُ الْقَيِّمِ، وَالْقَيِّمُ وَالْقَائِمُ: وَاحِدٌ. وَقَالَ الْفَرَّاءُ: أَضَافَ الدِّينَ إِلَى الْقَيِّمَةِ وَهُوَ نَعْتُهُ، لِاخْتِلَافِ اللَّفْظَيْنِ. وَعَنْهُ أَيْضًا: هُوَ مِنْ بَابِ إِضَافَةِ الشَّيْءِ إِلَى نَفْسِهِ، وَدَخَلَتِ الْهَاءُ لِلْمَدْحِ وَالْمُبَالَغَةِ. وَقِيلَ: الْهَاءُ رَاجِعَةٌ إِلَى الْمِلَّةِ أَوِ الشَّرِيعَةِ. وَقَالَ مُحَمَّدُ بن الأشعث، الطالقاني الْقَيِّمَةِ ها هنا: الْكُتُبُ الَّتِي جَرَى ذِكْرُهَا، وَالدِّينُ مُضَافٌ إِلَيْهَا.