Hadith of black flags

The hadith of black flags (Arabic: أحاديث الرايات السود) is a motif featured in Islamic apocalyptics, about people carrying black banners. These hadith were used by some to justify following the Abbasid Revolution. Many Islamist and some jihadistic groups identify themselves with black banners bearing a white.

In hadith
The hadith attributed to Muhammad say: ""When the black flags come from Khorasan go to them, even if you have to crawl on snow, for among them is the Khalifa from Allah, the Mahdi""

""Surely black flags will appear from the Khorasan until the people (under the leadership of this flag) will tie their horses with the olive trees between Bait-e-Lahya and Harasta (names of places in Jerusalem)""

""A Nation will come from the east with black flags and they will ask for some goodness (authority) but the people will not give them, then, they will fight and win over those people. Now the people will give them what they asked for but they will not accept it until they will hand it over to a person from my progeny who will fill this earth with justice just as it was previously filled with oppression and tyranny. So if anyone of you finds this nation (i.e. from the east with black flags) then you must join them even if you have to crawl over ice""

""Three will fight one another for your treasure, each one of them the son of a caliph, but none of them will gain it. Then the black banners will come from the east, and they will kill you in an unprecedented manner. When you see them, then pledge your allegiance to them even if you have to crawl over the snow, for that is the caliph from Allah, Mahdi" (Da'if)"

Early Islam
Greater Khorasan is a large territory that includes most of northern Afghanistan and north-eastern Iran. From a political point of view it also includes Transoxiana and Sistan. The region that is now known as Khorasan Province encompasses less than half of historical Khorasan; the rest of that region now belongs to Afghanistan. These black banners may be those with which Abu Muslim came and overthrew the Umayyad Caliphate in 132 AH.

Jihadism
Modern Jihadist organizations such as Al-Qaeda and ISIL also use black flags.

Justin O'Shea characterizes this hadith as "narrated by Abu Hurayrah but of questionable origin," and cites Will McCants' description of a "mythology" in which one sign of the End Times is that a Shia army with yellow flags will arise to fight the (Sunni) black flags in Syria — a mythology promoted and exploited by ISIS.