"The Messenger of Allah said: 'If anyone of you needs to defecate and the immediate call to prayer (Iqamah) is given, let him start with (relieving himself).'"
Sunan Ibn Majah Book 1, Hadith 350