Al-Imām al-Bukhārī - upon whom be mercy - narrates: Abū al-Walīd Hishām ibn ‘Abd al-Malik related to us; he said: Shu’bah related to us, from Abū Mu’ādh—whose name is ‘Aṭā’ ibn Abī Maymūnah—who said:
I heard Anas ibn Mālik - may Allāh Almighty be content with him - say that whenever the Messenger of Allāh ﷺ went out to relieve himself, I and another young boy would accompany him, carrying a vessel of water, and he ﷺ would cleanse himself with it (perform istinjā’).
حَدَّثَنَا أَبُو الْوَلِيدِ هِشَامُ بْنُ عَبْدِ الْمَلِكِ قَالَ: حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي مُعَاذٍ، وَاسْمُهُ عَطَاءُ بْنُ أَبِي مَيْمُونَةَ، قَالَ: سَمِعْتُ أَنَسَ بْنَ مَالِكٍ يَقُولُ
كَانَ النَّبِيُّ ﷺ إِذَا خَرَجَ لِحَاجَتِهِ أَجِيءُ أَنَا وَغُلَامٌ، مَعَنَا إِدَاوَةٌ مِنْ مَاءٍ، يَعْنِي يَسْتَنْجِي بِهِ.
Reference: Sahih Al Bukhari 150