Mughira bin Shuba reported,

He traveled with the Messenger of Allah ﷺ. The Prophet ﷺ entered a valley, relieved himself, then came out and approached him. He performed wudu, taking off his leather socks and washing his feet. After he had finished, he later passed wind, so he returned, came back out, performed wudu again, and this time wiped over his leather socks.I said, "Prophet of Allah, did you forget? Why did you not take off the leather socks?"He replied, "Not at all. Rather, you have forgotten. This is what my Lord عز وجل commanded me to do."

Ahmad 18145

Daif

حدثنا محمد بن عبيد حدثنا بكير عن عبد الرحمن بن أبي نعم حدثنا

المغيرة بن شعبة

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

أحمد 18145ضعيف
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Mughira bin Shuba
Numbering
Darussalam 18145
Ahmad 18145