Sahl bin Hanzaliya reported,

The Messenger of Allah ﷺ said on the day of Hunayn, within a long account, "Who will stand guard over us tonight?"Anas bin Abu Marthad al-Ghanawi replied, "I will, Messenger of Allah."The account mentions that the Messenger of Allah ﷺ then said to him, "You have secured your reward, so it would not matter if you did no further deed after this."

Azami 10110

Sahih

عن سهل بن الحنظلية

أن رسول الله ﷺ قال يوم حنين في- سياق طويل-: من يحرسنا الليلة؟ قال أنس بن أبي مرثد الغنوي: أنا يا رسول الله، وفيه أن رسول الله ﷺ قال له: قد أوجبت، فلا عليك أن لا تعمل بعدها.

الأعظمي 10110صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the Companions and reports about them
Chapter
Virtues of individual Companions and their reports
Section
Fadl Anas bin Marthad Ghanawi
Numbering
Jami al-Kamil 10110 (2nd edition)
Azami 10110