´It was narrated from ‘Amr bin Shu’aib, from his father, that his grandfather said:` “I saw the Messenger of Allah (ﷺ) performing prayer both barefoot, and while wearing sandals.”
Hadith Referenceسنن ابن ماجه / كتاب إقامة الصلاة والسنة / 1038
Hadith Gradingالألبانی:حسن صحيح | زبیر علی زئی:إسناده حسن
Hadith Takhrij«سنن ابی داود/الصلاة 89 ( 653 )، ( تحفة الأشراف: 8686 )، وقد أخرجہ: مسند احمد ( 2/174، 179، 206، 215 ) ( حسن صحیح )»
Narrated Abdullah ibn Amr ibn al-As: I saw the Messenger of Allah ﷺ praying both barefooted and wearing sandals.
Shaykh Umar Farooq Saeedi
653. Commentary: This action is not related to the increase or decrease of reward, as is established in matters such as the use of the miswak (tooth-stick) and similar acts.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 653