‘Ali ibn Abi Tālib (may Allah be pleased with him) reported that the Prophet (may Allah's peace and blessings be upon him) said: "When a group of people pass by, it is sufficient if one of them extends the greetings on their behalf, and it is sufficient if one returns the greeting on behalf of a group." Good hadith - Narrated by Abu Daoud