All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallahu ʻalayhi wa sallam, is His slave and Messenger.
It is strange indeed that a Muslim would refrain from praying in the mosque and miss the Friday and congregational prayers under the pretext that if he took off his shoes he would be committing disbelief! Does he pray at home with his shoes on so that he would not commit disbelief? How saddening the situation of many Muslims nowadays is! They are lost in ignorance and falsely ascribe it to the religion.
As to how you could convince him, then let him know it was authentically narrated that the Prophet, sallallahu ʻalayhi wa sallam, took off his shoes and performed the prayer barefoot inside Al-Masjid Al-Haraam. ʻAbdullah ibn As-Saa’ib, may Allah be pleased with him, said, “I was with the Messenger of Allah, sallallahu ʻalayhi wa sallam, on the day of the Conquest (of Makkah). He prayed in front of the Kaʻbah. He took off his shoes and placed them on his left and started to recite Surat Al-Mu’minoon. When he reached the passage that mentions Moosa (Moses) and ʻEesa (Jesus), may Allah exalt their mention, he started coughing, so he bent for the bowing.” [An-Nasaa’i and others]
Moreover, Abu Hurayrah, may Allah be pleased with him, narrated that the Prophet, sallallahu ʻalayhi wa sallam, said, “When any of you prays and takes off his sandals, he should not harm anyone by them. He should place them between his feet or pray with them on.” [Abu Daawood] Abu Hurayrah also narrated that the Prophet, sallallahu ʻalayhi wa sallam, said, “When any of you prays, he should not place his sandals on his right side or on his left so as to be on the right side of someone else, unless there is no one on his left; he should place them between his feet.”
This clearly proves that it is not obligatory to perform the prayer while wearing shoes. Abu Daawood,
, allocated a chapter in his book Sunan Abu Daawood entitled, “Chapter: Where should the person performing the prayer place his shoes if he takes them off?”
Allah knows best.