قَوْلُهُ تَعَالَى: {لَيْسَ بِأَمَانِيِّكُمْ وَلَا أَمَانِيِّ أَهْلِ الْكِتَابِ} [النساء: 123]
[Machine] When the verse "It is not according to your desires, nor according to the desires of the People of the Scripture. Whoever does evil, will have the recompense thereof" [Quran 4:123] was revealed, it caused distress for the Muslims. They went to the Messenger of Allah ﷺ and asked him about it. He replied, "Stay close to righteousness and adhere to it, for every affliction that a person faces is an expiation for their sins, even a thorn that pricks them."
عَنْ أَبِي هُرَيْرَةَ لَمَّا نَزَلَتْ {لَيْسَ بِأَمَانِيِّكُمْ وَلَا أَمَانِيِّ أَهْلِ الْكِتَابِ مَنْ يَعْمَلْ سُوءًا يُجْزَ بِهِ} [النساء 123] شَقَّ ذَلِكَ عَلَى الْمُسْلِمِينَ فَأَتَوْا رَسُولَ اللهِ ﷺ فَسَأَلُوهُ فَقَالَ «قَارِبُوا وَسَدِّدُوا فَفِي كُلِّ مَا يُصَابُ بِهِ الْعَبْدُ كَفَّارَةٌ حَتَّى النَّكْبَةُ يُنْكَبُهَا وَالشَّوْكَةُ يُشَاكُهَا»