Someone asked Anas, "Did the Messenger of Allah ﷺ pray in his sandals?"He replied, "Yes."
حدثنا علي بن حجر حدثنا إسمعيل بن إبراهيم عن سعيد بن يزيد أبي مسلمة قال
أكان رسول الله ﷺ يصلي في نعليه قال نعم
Agreed upon (by Bukhari and Muslim). Musnad Ahmad 3/189, from Ismail, who is Ibn Ulaya, and Bukhari, no. 386, and Muslim, no. 555, from the hadith of Saeed bin Yazid, through the same chain.There are also reports on this subject from Abdullah bin Masud [Ibn Majah, no. 1039], Abdullah bin Abu Habibah [Ahmad 4/221], Abdullah bin Amr [Abu Dawud, no. 653], Amr bin Hurayth [Tirmidhi in Shamail, no. 79], Shaddad bin Aws [Abu Dawud, no. 652], Aws Thaqafi [Ibn Majah, no. 1037], Abu Hurairah [Abu Dawud, no. 624, and others], and Ata, a man from Banu Shayba [Abu Naeem in Marifat Sahabah 4/2211, no. 5530].