It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) went aside to a corner away from the path to relieve himself.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6080
Hadith Gradingحکم دارالسلام:حديث صحيح، وهذا إسناد حسن.