Full Sharh — Mishkat al-Masabih 1009
وَعَنْ ثَوْبَانَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " ثَلَاثٌ لَا يَحِلُّ لِأَحَدٍ أَنْ يَفْعَلَهُنَّ: لَا يَؤُمَّنَّ رَجُلٌ قَوْمًا فَيَخُصَّ نَفْسَهُ بِالدُّعَاءِ دُونَهُمْ فَإِنْ فَعَلَ ذَلِكَ فَقَدْ خَانَهُمْ. وَلَا يَنْظُرْ فِي قَعْرِ بَيْتٍ قَبْلَ أَنْ يَسْتَأْذِنَ فَإِنْ فَعَلَ ذَلِكَ فَقَدْ خَانَهُمْ وَلَا يُصَلِّ وَهُوَ حَقِنٌ حَتَّى يَتَخَفَّفَ ". رَوَاهُ أَبُو دَاوُدَ وللترمذي نَحوه
English Translation
Thauban reported God’s Messenger as saying, “There are three things which are unlawful for anyone to do. A man must not act as imam for others in prayer and make a supplication for himself excluding them, for if he does that he has acted treacherously towards them. No one must look inside a house before asking permission to enter, for if he does so he has acted treacherously towards . And no one should pray while retaining urine, but should first relieve himself.” Abu Dawud transmitted it, and Tirmidhi has something similar.
Source
Mishkat al-Masabih(مشكاة المصابيح)
Prayer
Hadith Number
1009