Morocco’s Supreme Scientific Council made similar announcements during Ramadan and Eid Al Fitr to contain the spread of COVID-19.

Islamic Affairs Ministry Urges Moroccans to Perform Eid Al Adha at Home
Islamic Affairs Ministry Urges Moroccans to Perform Eid Al Adha at Home