Anas bin Malik reported,

The Prophet ﷺ was on a military expedition when he said, "There are people back in Madinah whom we have not crossed a mountain pass or a valley without their being with us in it. A valid excuse has kept them behind."Musa said, Hammad narrated to us from Humayd from Musa bin Anas from his father that the Prophet ﷺ said it. Abu Abdullah said, the first version is more authentic.

Bukhari 2839

Sahih

حدثنا سليمان بن حرب حدثنا حماد هو ابن زيد عن حميد

عن أنس رضي الله عنه

أن النبي ﷺ كان في غزاة فقال إن أقواما بالمدينة خلفنا ما سلكنا شعبا ولا واديا إلا وهم معنا فيه حبسهم العذر وقال موسى حدثنا حماد عن حميد عن موسى بن أنس عن أبيه قال النبي ﷺ قال أبو عبد الله الأول أصح

البخاري 2839صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Jihad and expeditions
Chapter
Those held back from battle by an excuse
Numbering
Darussalam 2839
Bukhari 2839