كتاب الطهارة وسننها
1  
The Book of Purification and its Sunnah
(114)
Chapter: What was narrated of the prohibition for the one holding urine or stool from praying
(114)
باب مَا جَاءَ فِي النَّهْىِ لِلْحَاقِنِ أَنْ يُصَلِّيَ
Sunan Ibn Majah 619
It was narrated from Thawban that:
The Messenger of Allah said: "No one among the Muslims should stand to pray when he is suppressing (the need to urinate or defecate), until he has to relieve himself."
حَدَّثَنَا مُحَمَّدُ بْنُ الْمُصَفَّى الْحِمْصِيُّ، حَدَّثَنَا بَقِيَّةُ، عَنْ حَبِيبِ بْنِ صَالِحٍ، عَنْ أَبِي حَىٍّ الْمُؤَذِّنِ، عَنْ ثَوْبَانَ، عَنْ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ أَنَّهُ قَالَ ‏ "‏ لاَ يَقُومُ أَحَدٌ مِنَ الْمُسْلِمِينَ وَهُوَ حَاقِنٌ حَتَّى يَتَخَفَّفَ ‏"‏ ‏.‏
Grade: Hasan (Darussalam)
Reference : Sunan Ibn Majah 619
In-book reference : Book 1, Hadith 353
English translation : Vol. 1, Book 1, Hadith 619