Muhammad bin Ubaydullah narrates from his father, from his grandfather, that the Prophet (peace and blessings be upon him) used to take a ritual bath (ghusl) for the two Eids.
Al-Bazzar recorded it; the narrator Mindal has been criticised, and I do not know this Muhammad or the narrators above him.