وَإِذَا مَسَّ ٱلنَّاسَ ضُرٌّۭ دَعَوْا۟ رَبَّهُم مُّنِيبِينَ إِلَيْهِ ثُمَّ إِذَآ أَذَاقَهُم مِّنْهُ رَحْمَةً إِذَا فَرِيقٌۭ مِّنْهُم بِرَبِّهِمْ يُشْرِكُونَ٣٣
When people are afflicted with hardship, they cry out to their Lord, turning to Him penitently. But as soon as He gives them a taste of His mercy, some of them associate partners with their Lord,
[ ↗ Study from physical print edition ]And when adversity touches the people, they call upon their Lord, turning in repentance to Him. Then when He lets them taste mercy from Him, at once a party of them associate others with their Lord,
[ ↗ Study from physical print edition ]33. When the idolaters are afflicted by a difficulty i.e. poverty, drought, they supplicate only to their Lord, may He be glorified, returning to Him humbling themselves and seeking refuge in Him to remove the affliction from them. Then, when He shows them mercy by removing whatever afflicted them, they return to their ways of idolatry by supplicating to others along with Him.
And when some distress some hardship befalls people that is people such as the Meccan disbelievers they call on their Lord turning returning in penitence to Him alone. Then when He lets them taste mercy from Him by way of rain lo! a party of them ascribe partners to their Lord.
مِنَ الَّذِينَ فَرَّقُوا دِينَهُمْ وَكَانُوا شِيَعًا (Among those who split up religion and became sects - 30:32) that is, these disbelievers are those who have created a difference between Natural Faith and the true religion, or they have alienated themselves from the Natural Faith, as a result of which they are divided into different sects. شِيَعًا :Shiya'an is the plural of شِیعۃ shi` ah. A group of people following a leader is called shi ah. The fact is that the Natural Faith was based on the Oneness of Allah, by following which the entire human kind should have been one solid unit and one party. But it so happened that people split out from this unity and started following the personal views of their own leaders. Since the personal views and opinions of different people may always vary from person to person, different groups of people invented their own beliefs and religion. As a consequence, people were divided into various groups and sects, and the Shaitan made them believe that they were the only people on the right path كُلُّ حِزْبٍ بِمَا لَدَيْهِمْ فَرِحُونَ (Each group is happy with what it has before it - 30:32). That is, each group is happy and contended in its own beliefs and declare others being wrong, although they all are astray and treading the wrong path.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)قَوْلُهُ تَعَالَى: ﴿وَإِذا مَسَّ النَّاسَ ضُرٌّ﴾ أَيْ قَحْطٌ وَشِدَّةٌ (دَعَوْا رَبَّهُمْ) أَنْ يَرْفَعَ ذَلِكَ عَنْهُمْ (مُنِيبِينَ إِلَيْهِ) قَالَ ابْنُ عَبَّاسٍ: مُقْبِلِينَ عَلَيْهِ بِكُلِ قُلُوبِهِمْ لَا يُشْرِكُونَ. وَمَعْنَى هَذَا الْكَلَامِ التَّعَجُّبُ، عَجِبَ نَبِيُّهُ مِنَ الْمُشْرِكِينَ فِي تَرْكِ الْإِنَابَةِ إِلَى اللَّهِ تَعَالَى مَعَ تَتَابُعِ الْحُجَجِ عَلَيْهِمْ، أَيْ إِذَا مَسَّ هَؤُلَاءِ الْكُفَّارَ ضُرٌّ مِنْ مَرَضٍ وَشِدَّةٍ دَعَوْا رَبَّهُمْ، أَيِ اسْتَغَاثُوا بِهِ فِي كَشْفِ مَا نَزَلَ بِهِمْ، مُقْبِلِينَ عَلَيْهِ وَحْدَهُ دُونَ الْأَصْنَامِ، لِعِلْمِهِمْ بِأَنَّهُ لَا فَرَجَ عِنْدَهَا. (ثُمَّ إِذا أَذاقَهُمْ مِنْهُ رَحْمَةً) أَيْ عَافِيَةً وَنِعْمَةً. (إِذا فَرِيقٌ مِنْهُمْ بِرَبِّهِمْ يُشْرِكُونَ) أَيْ يشركون به في العبادة.