Traced to Ka'b al-Ahbar (automatic guess): a report of earlier scriptures, not a hadith of the Prophet ﷺ.
يطلع نجم من المشرق قبل خروج المهدي، له ذناب قال: وحدثت عن شريك، أنه قال: بلغني أنه قبل خروج المهدي تنكسف الشمس في شهر رمضان مرتين
A star will rise from the east before the Mahdi appears. He has a tail. I have heard that before the Mahdi emerges, the sun will be eclipsed twice in the month of Ramadan.
الوليدكعبautomatic reading, unverified