Sunan Ibn Majah · Hadith 660
The Book of Purification and its Sunnah - كتاب الطهارة وسننها
حدثنا بشر بن آدم، حدثنا زيد بن الحباب، حدثنا معاوية بن صالح، عن السفر بن نسير، عن يزيد بن شريح، عن أبي أمامة، أن رسول الله صلى الله عليه وسلم نهى أن يصلي الرجل وهو حاقن .
It was narrated from Abu Umamah that: The Messenger of Allah forbade a man to perform prayer when he was suppressing (the urge to urinate or defecate).
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).