Thawban reported,

The Messenger of Allah ﷺ said, "There are three things no one is permitted to do. A man must not lead a people in prayer and then single himself out with supplication to their exclusion, for if he does so he has betrayed them. He must not peer into the interior of a house before seeking permission to enter, for if he does so it is as though he has already entered. And he must not pray while needing to relieve himself until he has eased himself."

Abu Dawud 90

Hasan

حدثنا محمد بن عيسى حدثنا ابن عياش عن حبيب بن صالح عن يزيد بن شريح الحضرمي عن أبي حي المؤذن

عن ثوبان قال

قال رسول الله ﷺ ثلاث لا يحل لأحد أن يفعلهن لا يؤم رجل قوما فيخص نفسه بالدعاء دونهم فإن فعل فقد خانهم ولا ينظر في قعر بيت قبل أن يستأذن فإن فعل فقد دخل ولا يصلي وهو حقن حتى يتخفف

أبو داود 90حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Purification
Chapter
A man praying while needing to relieve himself
Numbering
Darussalam 90
Abu Dawud 90