Language:
كتاب الصلاة
8
Prayers (Salat)
(6)
Chapter: If the garment is tight (over the body)
(6)
باب إِذَا كَانَ الثَّوْبُ ضَيِّقًا
Sahih al-Bukhari 361

Narrated Sa`id bin Al-Harith:

I asked Jabir bin `Abdullah about praying in a single garment. He said, "I traveled with the Prophet (ﷺ) during some of his journeys, and I came to him at night for some purpose and I found him praying. At that time, I was wearing a single garment with which I covered my shoulders and prayed by his side. When he finished the prayer, he asked, 'O Jabir! What has brought you here?' I told him what I wanted. When I finished, he asked, 'O Jabir! What is this garment which I have seen and with which you covered your shoulders?' I replied, 'It is a (tight) garment.' He said, 'If the garment is large enough, wrap it round the body (covering the shoulders) and if it is tight (too short) then use it as an Izar (tie it around your waist only.)' "

حَدَّثَنَا يَحْيَى بْنُ صَالِحٍ، قَالَ حَدَّثَنَا فُلَيْحُ بْنُ سُلَيْمَانَ، عَنْ سَعِيدِ بْنِ الْحَارِثِ، قَالَ سَأَلْنَا جَابِرَ بْنَ عَبْدِ اللَّهِ عَنِ الصَّلاَةِ، فِي الثَّوْبِ الْوَاحِدِ فَقَالَ خَرَجْتُ مَعَ النَّبِيِّ صلى الله عليه وسلم فِي بَعْضِ أَسْفَارِهِ، فَجِئْتُ لَيْلَةً لِبَعْضِ أَمْرِي، فَوَجَدْتُهُ يُصَلِّي وَعَلَىَّ ثَوْبٌ وَاحِدٌ، فَاشْتَمَلْتُ بِهِ وَصَلَّيْتُ إِلَى جَانِبِهِ، فَلَمَّا انْصَرَفَ قَالَ ‏"‏ مَا السُّرَى يَا جَابِرُ ‏"‏‏.‏ فَأَخْبَرْتُهُ بِحَاجَتِي، فَلَمَّا فَرَغْتُ قَالَ ‏"‏ مَا هَذَا الاِشْتِمَالُ الَّذِي رَأَيْتُ ‏"‏‏.‏ قُلْتُ كَانَ ثَوْبٌ‏.‏ يَعْنِي ضَاقَ‏.‏ قَالَ ‏"‏ فَإِنْ كَانَ وَاسِعًا فَالْتَحِفْ بِهِ، وَإِنْ كَانَ ضَيِّقًا فَاتَّزِرْ بِهِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 361
In-book reference : Book 8, Hadith 13
USC-MSA web (English) reference : Vol. 1, Book 8, Hadith 357
  (deprecated numbering scheme)