It is narrated from Hazrat Anas (may Allah be pleased with him) that when the Prophet (peace and blessings be upon him) would go to relieve himself, I and a boy would present a water vessel.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 14026