It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that a man invited him to a wedding feast. When he arrived there in order to enter, he heard the sound of amusement and unlawful things (lahw) there, so he did not enter. The man asked: Why did you turn back? He said: "I heard the Messenger of Allah (peace and blessings be upon him) say: Whoever increases the number of a group is one of them, and whoever is pleased with the deed of a people is an equal partner in their deed." Also, Imam al-Bayhaqi has narrated in his Sunan, through the route of Abdullah bin Umayr, this saying of Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him): "When a sin is committed on earth, whoever is present there but dislikes it is like one who was not present there, and whoever is not present there but is pleased with that sinful deed is like one who was present there."
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لانقطاعه بين عمرو بن الحارث وابن مسعود
Hadith Takhrij«عمرو بن الحارث المصري (ت 148): ثقة من السابعة (من الحفظ) لم يدرك ابن مسعود؛ أبو همام الوليد بن شجاع وابن وهب وبكر بن مضر: ثقات (من الحفظ)» «أخرجه المطالب العالية بزوائد المسانيد الثمانية برقم: 71»