Al-Ilmam bi-Ahadith al-Ahkam 80
وَعَن جَابر بن عبد الله رَضِيَ اللَّهُ عَنْهما، قَالَ: قَالَ رَسُول الله ﷺ : " إِذا تغوط الرّجلَانِ فليوار كل مِنْهُمَا عَن صَاحبه، وَلَا يتحدثان عَلَى طوفهما؛ فَإِن الله يمقت عَلَى ذَلِك ". أخرجه الْحَافِظ أَبُو عَلّي بن السكن، وَصَححهُ الْحَافِظ أَبُو الْحسن بن الْقطَّان.
From Jabir ibn ʿAbdullah, may Allah be pleased with them both, who said: The Messenger of Allah ﷺ said: "When two men relieve themselves, let each of them conceal himself from the other, and let them not talk while relieving themselves, for Allah detests that." The hafiz Abu ʿAli ibn as-Sakan reported it, and the hafiz Abu al-Hasan ibn al-Qattan graded it sahih.