عَنْ أَنَسِ بْنِ مَالِكٍ ‏- رضى الله عنه ‏- قَالَ: { كَانَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-إِذَا دَخَلَ اَلْخَلَاءَ وَضَعَ خَاتَمَهُ } أَخْرَجَهُ اَلْأَرْبَعَةُ, وَهُوَ مَعْلُول ٌ 1‏ .‏‏1 ‏- منكر .‏ رواه أبو داود (19)‏، والترمذي (1746)‏، والنسائي (1/178)‏، وابن ماجه (303)‏.‏
Translation
Narrated Jabir (rad)

Allah’s Messenger (ﷺ) said: “When two people go together to relieve themselves they should disappear from each other and do not talk, for Allah detests that”. [Reported by Ahmad; Ibn As-Sakan and Ibn Al-Qattan graded it Sahih (sound) but it is defective].