I heard the Messenger of Allah ﷺ say: When two persons go together for relieving themselves uncovering their private parts and talking together, Allah, the Great and Majestic, becomes wrathful at this (action). Abu Dawud said: This tradition has been narrated only by 'Ikrimah b. 'Ammar. (Using translation from Abū Dāʾūd 15)
سَمِعْتُ رَسُولَ اللهِ ﷺ قَالَ لَا يَخْرُجِ الرَّجُلَانِ يَضْرِبَانِ الْغَائِطَ كَاشِفَانِ عَوْرَتَهُمَا يَتَحَدَّثَانِ فَإِنَّ اللهَ يَمْقُتُ عَلَى ذَلِكَ