Urwa bin Zubayr reported,

Abdullah bin Arqam used to lead his companions in prayer. One day, when the time for prayer arrived, he went to relieve himself and then returned, saying, "I heard the Messenger of Allah ﷺ say, 'When one of you needs to relieve himself, let him do so before the prayer.'"

Nasai 853

Sahih

أخبرنا قتيبة عن مالك

عن هشام بن عروة عن أبيه

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

النسائي 853صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Leadership
Chapter
Excuse for missing the congregational prayer
Numbering
Darussalam 853
Nasai 853