Imam Bukhari narrates: Yahya bin Salih narrated to us, he says: Fulaih bin Sulaiman narrated to us from Saeed bin al-Harith, he narrates that
we asked Hazrat Jabir bin Abdullah, may Allāh be pleased with them both, about praying in one cloth, so he said: I went with the Prophet ﷺ on some journey, then I came to him at night because of some work of mine, and I found him praying, and upon me at that time was (only) one cloth. I wrapped it around myself and began praying to one side of him. When he finished the prayer, he said: O Jabir! For what have you come at night? So I informed him of my need, then when I had finished, he said: What is this cloth that I see wrapped around you? I said: This cloth was narrow. He said: If the cloth is wide then wrap it around yourselves, and if it is narrow then tie it as a waist-wrap.
حَدَّثَنَا يَحْيَى بْنُ صَالِحٍ، قَالَ حَدَّثَنَا فُلَيْحُ بْنُ سُلَيْمَانَ، عَنْ سَعِيدِ بْنِ الحَارِثِ
قَالَ سَأَلْنَا جَابِرَ بْنَ عَبْدِ اللَّهِ عَنِ الصَّلاَةِ فِي الثَّوْبِ الوَاحِدِ، فَقَالَ خَرَجْتُ مَعَ النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ فِي بَعْضِ أَسْفَارِهِ، فَجِئْتُ لَيْلةً لِبَعْضِ أَمْرِي، فَوَجَدْتُهُ يُصَلِّي، وَعَلي ثَوْبٌ وَاحِدٌ، فَاشْتَمَلْتُ بِهِ وَصَلَّيت إِلَى جَانِبِهِ، فَلَمَّا انْصَرَفَ قَالَ مَا السُّرَى يَا جَابِرُ فَأَخْبَرْتُهُ بِحَاجَتِي، فَلَمَّا فَرَغْتُ قَالَ مَا هَذَا الِاشْتِمَالُ الَّذِي رَأَيْتُ، قُلْتُ كَانَ ثَوْبٌ يَعْنِي ضَاقَ، قَالَ فَإِنْ كَانَ وَاسِعًا فَالْتَحِفْ بِهِ، وَإِنْ كَانَ ضَيِّقًا فَاتَّزِرْ بِهِ
Reference: Sahih Al Bukhari 361