It wasnarrated from 'Amr bin Shu'aib, from his father, that hisgrandfather said:
"I saw the Messenger of Allah (ﷺ) performingprayer both barefoot, and while wearing sandals." (RU)
English reference (RU): Vol. 1, Book 5, Hadith 1038 (RU)
Arabic reference (RU): Book 5, Hadith 1091 (RU)