It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever gets a headache in the path of Allah and hopes for reward (by bearing it patiently), all his previous sins will be forgiven." Imam Abu Bakr bin Abi Shaybah narrated it with these words: "Whoever gets a headache in the path of Allah, his past sins are forgiven." Likewise Ahmad bin Mani' (through Qurran bin Tammam and Marwan bin Mu'awiyah) and Abd bin Humayd also narrated it. I (Allamah al-Busiri) say: All these chains revolve around al-Ifriqi (Abdur Rahman bin Ziyad bin An'um), and he is a da'if (weak) narrator.
Hadith Takhrij«قلت: مدار هذه الطرق على الأفريقي وهو ضعيف» «(4273/1) أخرجه مسند البزار برقم: 2437، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 3187، 3192» «(4273/2) أخرجه مصنف ابن أبي شيبة برقم: 158، وأخرجه مسند البزار برقم: 2437، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 3188»