Mughira bin Shu’bah (may Allah be pleased with him) narrates that the Messenger of Allah (ﷺ) went out to relieve himself during the expedition of Tabuk, then (afterwards) he performed ablution, wiped over his leather socks, and offered prayer.
Hadith Referenceمسند الإمام الشافعي / كتاب الطهارة / 76
Hadith Takhrijصحيح: اخرجه البيهقي في معرفة السنن والآثار (416).