Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
There is no sin for a Muslim to perform prayer while wearing their sandals or shoes, provided they are free from any impurities (najasa). It was narrated that Anas bin Malik (may Allah be pleased with him) was asked: 'Did the Prophet ﷺ pray in his sandals?' He replied: 'Yes.'" (Related by Al-Bukhari).
It is stated in Fath al-Bari (Vol.1/P.494) by Ibn Hajar (may Allah have mercy on him): "Regarding the phrase 'praying in his sandals,' Ibn Battal said: 'This is understood to apply as long as there is no impurity on them; furthermore, this is considered one of the legal concessions (rukhas)." And Allah the Almighty knows best.