Islamic manners are the most refined. They take care of the feelings of even the weakest, humblest or youngest in any group or community.
To appreciate the change brought by Islam, let us look at the following Hadith. Abdullah ibn Massoud quotes the Prophet, peace be upon him, as saying “Should there be three of you, then let not two of them be in conversation to the exclusion of the third, because this will hurt him.” [Related by Al-Bukhari and Muslim]
This Hadith enjoys a high degree of authenticity, and it comes in several versions. Another similarly authentic version uses the third person and drops the cause at the end. Thus, the Hadith runs as follows: “If there is a group of three, then let not two of them be in conversation to the exclusion of the third.” [Related by Al-Bukhari and Muslim].
A third version adds some qualification. “Let not two people talk to each other to the exclusion of a third until they mix with others, because their action hurts him.” [Related by Al-Bukhari]
It seems that the Prophet, peace be upon him, gave this advice on different occasions and in different wordings, so that it would be known and people will act on it. The Prophet, peace be upon him, is concerned here for the third person that is left out of the conversation between the other two. We do not have any qualification to limit this instruction to any situation, which means that whoever the third person happens to be, he or she must not be so obviously excluded. The Prophet, peace be upon him, clarifies that such an action is bound to hurt the excluded person. Hence, it must not be done, and the order he gives represents a very clear prohibition.
Thus, if they are three brothers, or three classmates, or colleagues, or indeed any three, the restriction applies. The Prophet, peace be upon him, mentions the figure three because it is the least number where exclusion may occur. But it applies to any larger number of people where such exclusion takes place. When there is a group of people, they must not leave any one of them feeling excluded.
Another version of this Hadith adds a clarification. When the Prophet, peace be upon him, stated this prohibition, his companions asked: “What if they are four?” He said: “That is all right.” This applies when two of the four have some private conversation. The restriction does not apply here because the other two could talk to each other. The feeling of exclusion does not apply. However, if three of them talk together and exclude the fourth, the same prohibition applies.