Bulugh al-Maram 1455

كِتَابُ الْجَامِعِ

وَعَنِ ابْنِ مَسْعُودٍ - رضي الله عنه - قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «إِذَا كُنْتُمْ ثَلَاثَةً, فَلَا يَتَنَاجَى اثْنَانِ دُونَ الْآخَرِ, حَتَّى تَخْتَلِطُوا بِالنَّاسِ; مِنْ أَجْلِ أَنَّ ذَلِكَ يُحْزِنُهُ». مُتَّفَقٌ عَلَيْهِ, وَاللَّفْظُ لِمُسْلِمٍ.

From Ibn Masʿud, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "When you are three, two should not converse privately to the exclusion of the other until you mix with other people, because that would grieve him." Agreed upon, and the wording is Muslim's.