Sayyiduna Ibn Umar (may Allah be pleased with them) narrates that the Messenger of Allah (peace and blessings be upon him) said: "On the Day of Resurrection, a flag will be set up for every traitor, by which he will be recognized."
Related hadith on this topic