وَمَا ٱخْتَلَفْتُمْ فِيهِ مِن شَىْءٍۢ فَحُكْمُهُۥٓ إِلَى ٱللَّهِ ۚ ذَٰلِكُمُ ٱللَّهُ رَبِّى عَلَيْهِ تَوَكَّلْتُ وَإِلَيْهِ أُنِيبُ١٠
Whatever you may differ about, it is for Allah to judge. Such is Allah, my Lord; in Whom I put my trust, and to Whom I turn,
[ ↗ Study from physical print edition ]And in anything over which you disagree - its ruling is [to be referred] to Allah. [Say], "That is Allah, my Lord; upon Him I have relied, and to Him I turn back."
[ ↗ Study from physical print edition ]10. Whatever you, O People, differ in about the principle and secondary matters of your religion, the judgement for that rests with Allah, and His book and the tradition of His Messenger (peace be upon him) must be used as a reference. The One who possesses these attributes is my Lord. It is on Him that I rely in all my affairs and it is to Him that I turn by repenting to Him.
And whatever you may differ with disbelievers in of religion or otherwise the verdict therein belongs it will return to God on the Day of Resurrection; He will judge between you. Say to them That then is God my Lord; in Him I have put my trust and to Him I turn penitently.
Commentaryوَمَا اخْتَلَفْتُمْ فِيهِ مِن شَيْءٍ فَحُكْمُهُ إِلَى اللَّـهِ (Whatever dispute you have in any matter, its judgment lies with Allah. - 10) It means that the judgment in all those matters in which you dispute lies with Allah, because the sovereignty belongs to Allah only, as stated in another verse:إِنِ الْحُكْمُ إِلَّا لِلَّـهِ (The Decision belongs to none but Allah - 6:57). The direction in many verses to obey Rasulullah ﷺ and in some verses to obey those in authority does not contradict the above, because the orders of Rasulullah ﷺ and of the authorities are also, in a way, orders of Allah. If the order has been received through ` wahy' or based upon the clear and definite verses (nusus) of the Qur'an and sunnah, then its being an order of Allah is obvious. And if the order is an 'ijtihad' (inference) which in turn is based upon nusus of Qur'an and sunnah, then also, in a way, it is an order of Allah. ijtihadat' (plural of ` ijtihad' ) of the ` mujtahidin' of the ummah (those who are competent to interpret the Qur'an and Sunnah, and infer Islamic laws from them) on this basis, are included in orders of Allah. That is why the learned scholars have declared that the fatwa (ruling) given by a ` mufti' (A competent Islamic scholar) is to be taken as a part of the religious law by the common masses who do not have the ability to understand the Qur'an and the Sunnah directly.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)قَوْلُهُ تَعَالَى: ﴿وَمَا اخْتَلَفْتُمْ فِيهِ مِنْ شَيْءٍ﴾ حِكَايَةُ قَوْلِ رَسُولِ اللَّهِ ﷺ لِلْمُؤْمِنِينَ، أَيْ وَمَا خَالَفَكُمْ فِيهِ الْكُفَّارُ مِنْ أَهْلِ الْكِتَابِ وَالْمُشْرِكِينَ مِنْ أَمْرِ الدِّينِ، فَقُولُوا لَهُمْ حُكْمَهُ إِلَى اللَّهِ لَا إِلَيْكُمْ، وَقَدْ حَكَمَ أَنَّ الدِّينَ هُوَ الْإِسْلَامُ لَا غَيْرُهُ. وَأُمُورُ الشَّرَائِعِ إِنَّمَا تُتَلَقَّى مِنْ بَيَانِ اللَّهِ. "ذلِكُمُ اللَّهُ رَبِّي" أَيِ الْمَوْصُوفُ بِهَذِهِ الصِّفَاتِ هُوَ رَبِّي وَحْدَهُ، وَفِيهِ إِضْمَارٌ: أَيْ قُلْ لَهُمْ يَا مُحَمَّدُ ذَلِكُمُ اللَّهُ الَّذِي يُحْيِي الْمَوْتَى وَيَحْكُمُ بَيْنَ الْمُخْتَلِفِينَ هُوَ رَبِّي. "عَلَيْهِ تَوَكَّلْتُ" اعْتَمَدْتُ. "وَإِلَيْهِ أُنِيبُ" أَرْجِعُ.