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.
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ لاَ يَخْرُجُ الرَّجُلاَنِ يَضْرِبَانِ الْغَائِطَ كَاشِفَيْنِ عَنْ عَوْرَتِهِمَا يَتَحَدَّثَانِ فَإِنَّ اللَّهَ ﷻ يَمْقُتُ عَلَى ذَلِكَ