Sahih al-Bukhari 7111
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
يُنْصَبُ لِكُلِّ غَادِرٍ لِوَاءٌ يَوْمَ الْقِيَامَةِ "
Narrated Nafi`:
When the people of Medina dethroned Yazid bin Muawiya, Ibn `Umar gathered his special friends and children and said, "I heard the Prophet (ﷺ) saying, 'A flag will be fixed for every betrayer on the Day of Resurrection,' and we have given the oath of allegiance to this person (Yazid) in accordance with the conditions enjoined by Allah and His Apostle and I do not know of anything more faithless than fighting a person who has been given the oath of allegiance in accordance with the conditions enjoined by Allah and His Apostle , and if ever I learn that any person among you has agreed to dethrone Yazid, by giving the oath of allegiance (to somebody else) then there will be separation between him and me."
Full reference and source
Sahih al-Bukhari 7111 In-book : Book 92, Hadith 58 USC-MSA web (English) : Vol. 9, Book 88, Hadith 227 (deprecated)
View source on Sunnah.com (opens in a new tab)