Praise be to Allaah.
If the people of a city are not ordered by their ruler to offer the
Eid prayers or prayers for rain, then it is prescribed for them to offer
the Eid prayer and prayers for rain in the desert (i.e., outside the
city) if that is possible, or else in the mosques, because the Messenger
(peace and blessings of Allaah
be upon him) prescribed that for his ummah. Eid prayer is fard kafaayah
(i.e., if some members of the community
undertake this duty, the rest are free from blame, but if no one does
it, all will be held to blame), so it is not permissible for the Muslims
in any city to neglect it. Some of the scholars said that it is fard
‘ayn (an individual obligation) like Jumu’ah prayers, because the
Messenger of Allaah (peace
and blessings of Allaah be upon him) did it and ordered others to do
it.
Kitaab Majmoo’ Fataawa wa Maqaalaat Mutanawwi’ah li Samaahat al-Shaykh ‘Abd al-‘Azeez ibn ‘Abd-Allaah ibn Baaz (may Allaah have mercy on him), vol. 13, p. 85