It is narrated from Hanash that it was said to Sayyiduna Ali (may Allah be pleased with him): "Some people are unable to go out (for the Eid prayer); some of them are ill, and for some the mosque (the prayer-ground) is far away." He (may Allah be pleased with him) said: "Pray it here; and those who are in the mosque should pray four rak'ahs: two rak'ahs as the Sunnah, and two rak'ahs in place of (not being able to) go out (to the prayer-ground)."
Ahmad bin Mani' recorded it, and its narrator Hanash is da'if (weak).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب صلاة العيدين / 1613