وَالْخِيَارِ لِلْمُصَلِّي بَيْنَ الصَّلَاةِ فِيهِمَا وَبَيْنَ خَلْعِهِمَا وَوَضْعِهِمَا بَيْنَ رِجْلَيْهِ، كَيْ لَا يُؤْذِيَ بِهِمَا غَيْرَهُ
The worshipper has the option to pray while wearing shoes or to take them off and place them between his feet, so that they do not cause harm to other worshippers.