Anas bin Malik reported,

The tribe of Banu Salama wanted to move from their homes and settle closer to the Prophet ﷺ. The Messenger of Allah ﷺ disliked that Madinah should be left empty, so he said, "Will you not seek reward for your footsteps?"Mujahid said, "Their footsteps means their steps, walking upon the earth with their feet."

Bukhari 656

Sahih

وقال ابن أبي مريم أخبرنا يحيى بن أيوب حدثني حميد

حدثني أنس

أن بني سلمة أرادوا أن يتحولوا عن منازلهم فينزلوا قريبا من النبي ﷺ قال فكره رسول الله ﷺ أن يعروا المدينة فقال ألا تحتسبون آثاركم قال مجاهد خطاهم آثارهم أن يمشى في الأرض بأرجلهم

البخاري 656صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
Expecting reward for hardships
Numbering
Darussalam 656
Bukhari 656