Traced to Ka'b al-Ahbar (automatic guess): a report of earlier scriptures, not a hadith of the Prophet ﷺ.
تظهر رايات سود لبني العباس حتى ينزلوا الشام، ويقتل الله على أيديهم كل جبار عنيد أو عدوا لهم، يرابط بساحتهم أدم خمسة وأربعين صباحا، فيدخلها سبعون ألفا شعارهم فيها: أمت أمت، ثم تضع الحرب أوزارها، فيمكث ملكهم تسعا في سبع، ثم ينتكث أمرهم بعد ثلاث وسبعين سنة
Black banners of the Abbasids will appear until they descend on the Sham (Greater Syria), and Allah will kill at their hands every stubborn tyrant or enemy of theirs. Adam will station in their square for forty-five mornings, and seventy thousand will enter it, and their slogan there will be: “Ammah, Ammah.” Then the war will end, and their rule will last nine times out of seven, then their rule will be broken after seventy-three years.
أبو المغيرةابن عياشكعبautomatic reading, unverified