Sayyiduna Ali (may Allah be pleased with him) said: Going to the graveyard on the two Eids is from the Sunnah.
Al-Tabarani recorded it in al-Mu'jam al-Awsat. Its chain contains al-Harith, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 4313