Abdullah bin Arqam reported,

The Messenger of Allah ﷺ said, "If one of you needs to relieve himself and the prayer has been called, let him start with that."

Ibn Majah 616

Sahih

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

عن عبد الله بن أرقم قال

قال رسول الله ﷺ إذا أراد أحدكم الغائط وأقيمت الصلاة فليبدأ به

ابن ماجه 616صحيح
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 616
Ibn Majah 616