It is narrated from Hazrat Abu Saeed Khudri (may Allah be pleased with him) that I heard the Prophet (peace and blessings of Allah be upon him) saying: Two men should not converse with each other in such a manner while they are relieving themselves and their private parts are exposed, because Allah is displeased with such an act.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 11310
Hadith Gradingحکم دارالسلام:صحيح لغيره، وهذا إسناد ضعيف لعلل