Mishkat al-Masabih 1070
وَعَنْ ثَوْبَانَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: ثَلَاثٌ لَا يَحِلُّ لِأَحَدٍ أَنْ يَفْعَلَهُنَّ: لَا يَؤُمَّنَّ رَجُلٌ قَوْمًا فَيَخُصَّ نَفْسَهُ بِالدُّعَاءِ دُونَهُمْ فَإِنْ فَعَلَ ذَلِكَ فَقَدْ خَانَهُمْ. وَلَا يَنْظُرْ فِي قَعْرِ بَيْتٍ قَبْلَ أَنْ يَسْتَأْذِنَ فَإِنْ فَعَلَ ذَلِكَ فَقَدْ خَانَهُمْ وَلَا يُصَلِّ وَهُوَ حَقِنٌ حَتَّى يَتَخَفَّفَ . رَوَاهُ أَبُو دَاوُدَ وللترمذي نَحوه
From Thawban, who said: The Messenger of Allah ﷺ said: "Three things it is not permitted for anyone to do: a man should not lead people [in prayer] and single himself out in supplication without them, for if he does that he has betrayed them; he should not look into the inside of a house before asking permission, for if he does that he has betrayed them; and he should not pray while he is holding back [urine] until he relieves himself." Reported by Abu Dawud, and at-Tirmidhi has something similar.