Sayyiduna Anas bin Malik (may Allah be pleased with him) reports that the Prophet (peace and blessings be upon him) said: "Whoever sets out from his home to seek knowledge, his journey will be counted as being in the way of Allah until he returns."
Hadith Referenceمعجم صغير للطبراني / كتاب العلم / 74
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«إسناده ضعيف ، وأخرجه الترمذي فى «جامعه» برقم: 2647، قال الشيخ الألباني: ضعيف ، والبزار فى «مسنده» برقم: 6520، والطبراني فى «الصغير» برقم: 380، الضياء المقدسي فى «الأحاديث المختارة» برقم: 2119، 2120، 2121، ضعيف الجامع الصغير برقم: 5570»
Anas reported God’s messenger as saying, “He who goes out in search of knowledge is in God’s path till he returns.” Tirmidhi and Darimi transmitted it.
Hafiz Zubair Ali Zai
Hadith Authentication: The chain of narration for this report is weak. ◄ The narrators of this report—Khalid ibn Yazid al-‘Utki, Abu Ja‘far al-Razi, and Rabi‘ ibn Anas—were considered hasan al-hadith (acceptable in hadith) by the majority of hadith scholars due to their authentication. However: Hafiz Ibn Hibban said regarding Rabi‘ ibn Anas: «والناس يتقون حديثه ما كان من رواية ابي جعفر عنه لان فيها اضطراب كثير» “And people avoid the narration of Abu Ja‘far (al-Razi) from him (Rabi‘ ibn Anas), because there is much confusion in it.” [كتاب الثقات ج 4ص 228] ↰ This is a specific criticism, therefore it takes precedence over the general authentication. That is, the narrations reported by Abu Ja‘far al-Razi from Rabi‘ ibn Anas are weak, while the narrations reported by other trustworthy and reliable narrators are hasan (good) or sahih (authentic).
Note: The reference from al-Darimi was not found. «والله اعلم»
Source: Adwa al-Masabih fi Tahqiq Mishkat al-Masabih, Page: 220