Hadith Q1009

وَالْخِيَارِ لِلْمُصَلِّي بَيْنَ الصَّلَاةِ فِيهِمَا وَبَيْنَ خَلْعِهِمَا وَوَضْعِهِمَا بَيْنَ رِجْلَيْهِ، كَيْ لَا يُؤْذِيَ بِهِمَا غَيْرَهُ
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.
Hadith Reference صحيح ابن خزيمه / جماع أبواب الصلاة على البسط / Q1009