It is an issue of dispute among scholars. The most authentic opinion is that it is obligatory.However, if your husband refuses that you attend the Eid prayer, it is his right and you have to obey him and you will not be sinful.

And Allah knows best

My husband is doesn’t allowed me to go to salah aid?

Fasting |