Anas bin Malik reported,

Whenever the Prophet ﷺ was a resident, he would observe spiritual retreat during the last ten days of Ramadan, and whenever he was traveling, he would observe twenty days of retreat the following year.Ubayy said, "I did not hear this hadith except from Ibn Abu Adi, from Humayd, from Anas."

Ahmad 12017

Sahih

حدثنا ابن أبي عدي عن حميد

عن أنس قال

كان النبي ﷺ إذا كان مقيما اعتكف العشر الأواخر من رمضان وإذا سافر اعتكف من العام المقبل عشرين قال أبي لم أسمع هذا الحديث إلا من ابن أبي عدي عن حميد عن أنس

أحمد 12017صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Anas bin Malik
Numbering
Darussalam 12017
Ahmad 12017