33 – Refraining from attending an invitation that involves sin:
It is not permissible to attend a gathering to which one has been invited if it contains an act of disobedience, unless one goes with the intention of condemning it and trying to have it removed. If the sin is removed, one may stay; otherwise, one must leave. On this subject several hadiths have been reported.
The first: ʿAlī said,
“I prepared some food and invited the Messenger of Allah (Allah bless him and grant him peace). He came, but when he saw images in the house he turned back. [I said, ‘O Messenger of Allah, may my father and mother be ransomed for you—what made you turn back?’ He replied, ‘There is a curtain in the house that has images on it, and the angels do not enter a house that contains images.’] 2.”