8.2 It is obligatory to wear clothes while offering As-Salat (the prayers)
٨۔٢ باب وُجُوبِ الصَّلاَةِ فِي الثِّيَابِ
[Machine] And the saying of Allah, exalted be He: "Take your adornment at every mosque." And it is mentioned from Salamah ibn Al-Akwa' that the Prophet ﷺ said: "He should visit him even if it is with a thorn." Its chain of narration has some uncertainty. And whoever prays while wearing a single garment and it is mentioned from the Prophet ﷺ that he said: "He should not perform Tawaf (circumambulation) around the Ka'bah naked."
وَقَوْلِ اللَّهِ تَعَالَى: {خُذُوا زِينَتَكُمْ عِنْدَ كُلِّ مَسْجِدٍ}. وَمَنْ صَلَّى مُلْتَحِفًا فِي ثَوْبٍ وَاحِدٍ، وَيُذْكَرُ عَنْ سَلَمَةَ بْنِ الأَكْوَعِ أَنَّ النَّبِيَّ ﷺ قَالَ: «يَزُرُّهُ وَلَوْ بِشَوْكَةٍ». فِي إِسْنَادِهِ نَظَرٌ، وَمَنْ صَلَّى فِي الثَّوْبِ الَّذِي يُجَامِعُ فِيهِ مَا لَمْ يَرَ أَذًى، وَأَمَرَ النَّبِيُّ ﷺ أَنْ لاَ يَطُوفَ بِالْبَيْتِ عُرْيَانٌ.