The Messenger of Allah ﷺ said, "When the first and the last are gathered on the Day of Resurrection, a banner will be raised for every traitor, and it will be said, 'This is the treachery of so-and-so.'"
قال رسول الله ﷺ: إذا جمع الأولين والآخرين يوم القيامة يرفع لكل غادر لواء، فقيل: هذه غدرة فلان.
Bukhari narrated it in Al-Adab (6177), and Muslim in Jihad and Expeditions (1735:9), from the route of Yahya Qattan, and Muslim added Abdullah bin Numayr, from Ubaydullah, from Nafi, from Ibn Umar, who mentioned it. The wording is Muslim's.