Wa `alaykum As-Salamu wa Rahmatullahi wa Barakatuh
In the Name of Allah, the All-Merciful, the Mercy-Giving
All praise is due to Allah. Peace and blessings be upon His Messenger Muhammad.
If there is a conflict between a command of Allah and responding to people’s requests the command of Allah must take precedence.
Abdul-Wahhab bin Al-Ward narrated from a man among the inhabitants of Al-Madinah who said: “Mu`awiyah wrote a letter to `Aishah, that: ‘Write a letter to advise me, and do not overburden me.'” He said: “So `Aishah [may Allah be pleased with her] wrote to Mu`awiyah: ‘Peace be upon you. As for what follows: Indeed I heard the Messenger of Allah (peace be upon him) saying: Whoever seeks Allah’s pleasure by the people’s wrath, Allah will suffice him from the people. And who ever seeks the people’s pleasure by Allah’s wrath, Allah will entrust him to the people. And Peace be upon you.'” (At-Trimidhi)
I suggest you go and congratulate them at the beginning of the party and then leave immediately after making a sincere advice for them. You can also visit them later and explain to them that it is prohibited and you cannot participate in haram. If they do not understand, you are not then blamed by the Shari`ah. It should not keep you away from maintaining your family relations with them in the future. May Allah bless you and make things easy for you.
Almighty Allah knows best.
Views expressed by hosts/guests on this program (live dialogue, Facebook sessions, etc.) are their own and their appearance on the program does not imply an endorsement of them or any entity they represent.