[Machine] The Messenger of Allah ﷺ prohibited a man from praying until he belted himself. Abdullah ibn al-Mubarak narrated from Ibn Jurayj who said, "I was informed by Yahya ibn Abi Kathir that the Prophet ﷺ prohibited a man from praying while wearing a shirt with its buttons unfastened, fearing that his private parts would be visible when he bows in prayer, until he fastens it." Yahya said, "If the shirt does not have buttons, and therefore it is stitched together, then it is permissible for him to pray in it just like the shirt with buttons fastened."
أَنَّ رَسُولَ اللهِ ﷺ نَهَى أَنْ يُصَلِّيَ الرَّجُلُ حَتَّى يَحْتَزِمَ وَرَوَى عَبْدُ اللهِ بْنُ الْمُبَارَكِ عَنِ ابْنِ جُرَيْجٍ قَالَ حُدِّثْتُ عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ أَنَّ النَّبِيَّ ﷺ نَهَى أَنْ يُصَلِّيَ الرَّجُلُ فِي قَمِيصٍ مَحْلُولَةٍ أَزْرَارُهُ مَخَافَةَ أَنْ يُرَى فَرْجُهُ إِذَا رَكَعَ حَتَّى يَزُرَّهُ قَالَ يَحْيَى إِذْ لَمْ يَكُنْ عَلَيْهِ أَزْرَارٌ وَهَذَا إِنْ كَانَ مُنْقَطِعًا فَهُوَ مُوَافِقٌ لِلْمَوْصُولِ قَبْلَهُ