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." (JA)
English reference (JA): Vol. 1, Book 5, Hadith 1038 (JA)
Arabic reference (JA): Book 5, Hadith 1091 (JA)