Narrated Abu Hurairah:
"When the following was revealed: 'Whoever works evil will have the recompense of it... (4:123)' That worried the Muslims, so they complained about that to the Messenger of Allah (ﷺ) and he said: "Seek closeness and be steadfast, and in all that afflicts the believer there is atonement, even a thorn that pricks him, and the hardship he suffers."
English reference: Vol. 5, Book 44, Hadith 3038
Arabic reference: Book 47, Hadith 3312
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.