I saw the Messenger of Allah (ﷺ) praying both barefooted and wearing sandals.

Sunan Abu Dawud Book 2 Hadith 263

Sunan Abu Dawud #653

Prayer (Kitab Al-Salat) 2:263

Narrated Abdullah ibn Amr ibn al-'As:

I saw the Messenger of Allah (ﷺ) praying both barefooted and wearing sandals.

Chapter: Praying In Sandals

Grade: Hasan Sahih (Al-Albani)