Imam Bukhari narrates: Adam bin Abi Iyas narrated to us, he said: Shu'bah narrated to us, he said: Abu Muslimah Sa'eed bin Yazid Al-Azdi informed us, he said:
"I asked Hazrat Anas bin Malik (may Allah be pleased with him): Did the Prophet ﷺ pray while wearing shoes? He said: Yes!"
حَدَّثَنَا آدَمُ بْنُ أَبِي إِيَاسٍ، قَالَ حَدَّثَنَا شُعْبَةُ، قَالَ أَخْبَرَنَا أَبُو مَسْلَمَةَ، سَعِيدُ بْنُ يَزِيدَ الأَزْدِيُّ قَالَ سَأَلْتُ أَنَسَ بْنَ مَالِكٍ أَكَانَ النَّبِيُّ صلى الله عليه وسلم يُصَلِّي فِي نَعْلَيْهِ قَالَ نَعَمْ.
Reference: Sahih Al Bukhari 386