[Machine] The Messenger of Allah ﷺ forbade wearing two garments at once, wrapping oneself in a single garment that exposes one's private parts towards the sky. This was narrated in the two Sahihs from the Hadith of Ubaidullah ibn Umar.
أَنَّ رَسُولَ اللهِ ﷺ نَهَى عَنْ لُبْسَتَيْنِ عَنِ اشْتِمَالِ الصَّمَّاءِ وَعَنِ الِاحْتِبَاءِ فِي ثَوْبٍ وَاحِدٍ يُفْضِي بِفَرْجِهِ إِلَى السَّمَاءِ أَخْرَجَاهُ فِي الصَّحِيحَيْنِ مِنْ حَدِيثِ عُبَيْدِ اللهِ بْنِ عُمَرَ