Translation:
The Prophet Muhammad (PBUH) said, "Whoever suffers a headache in the cause of Allah and bears it with patience, his previous sins will be forgiven."
Context:
This narration is reported by Imam al-Bazzar in Musnad al-Bazzar (vol. 6, p. 413, Hadith 2437). This hadith is weak (daif) and is not recorded in any authentic hadith sources.
However, the fundamental idea in the hadith is supported by the following authentic hadith recorded in Sahih al-Bukhari 5641–5642 and Sahih Muslim 2573, in which the Prophet (PBUH) said: "No fatigue, illness, anxiety, sorrow, harm, or distress afflicts a Muslim—even the prick of a thorn—but that Allah expiates some of his sins because of it."
So, it is established that hardships in the way of Allah are a way to expiate your sins, but whether the hadith about headache specifically is authentic is still open for debate.
Download