ENOfficial
Abu Sa'id reported God’s messenger as saying, "Two people should not go together to relieve themselves and uncover their private parts and talk, for God is angry with that.” Ahmad, Abu Dawud and Ibn Majah transmitted it.
Source: sunnah.com
Other translations
Arabic
وَعَنْ أَبِي سَعِيدٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا يَخْرُجِ الرَّجُلَانِ يَضْرِبَانِ الْغَائِطَ كَاشِفَيْنِ عَنْ عَوْرَتِهِمَا يَتَحَدَّثَانِ فَإِنَّ اللَّهَ يَمْقُتُ عَلَى ذَلِكَ» . رَوَاهُ أَحْمَدُ وَأَبُو دَاوُدَ وَابْنُ مَاجَهْ
sunnah.com