Abu Umama reported,

The Messenger of Allah ﷺ forbade a man from praying while needing to relieve himself.

Ibn Majah 617

Sahih

حدثنا بشر بن آدم حدثنا زيد بن الحباب حدثنا معاوية بن صالح عن السفر بن نسير عن يزيد بن شريح

عن أبي أمامة

أن رسول الله ﷺ نهى أن يصلي الرجل وهو حاقن

ابن ماجه 617صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Purification and its sunnahs
Chapter
Prohibition for one needing to relieve himself to pray
Numbering
Darussalam 617
Ibn Majah 617