All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
It is obligatory for whoever sees or hears of an evil to disapprove of it to the extent of one's ability, and people vary in this regard. Abu Sa‘eed Al-Khudri narrated that the Prophet, sallallaahu ‘alayhi wa sallam, said: “If anyone among you sees an evil, he must change it with his hand, if he is unable then with his tongue, and if he is unable, then with his heart, and that is the weakest of faith.” [Muslim]
For more benefit on the guidelines for enjoining what is good and forbidding what is evil, please refer to Fataawa 84348 and 17092.
If a person disapproves of an evil with his tongue, or disapproves of it in his heart because that is all he can do, and the sinner is not deterred but persists in his sin, then the person must leave this gathering. Abandoning such a gathering means moving to a place where he cannot see or hear this evil.
Accordingly, the scholars made this (i.e. not being able to see or hear evil) a condition for the permissibility of attending a wedding ceremony if the ceremony incorporates evil. Ar-Ruhaybaani from the Hanbali School, said: “If the invited person knows about the evil but neither sees or hears it, then he is permitted to stay and eat as explicitly stated, because what is forbidden is to see and hear the evil, and here, the evil does not exist (i.e. the person does not hear or see the evil).”
Allaah Knows best.