Hadithcore
Sahih Muslim, 1853
sahih

It has been narrated on the authority of Aba Sa'id al-Khudri that the Messenger of Allah (ﷺ) said:

When oath of allegiance has been taken for two caliphs, kill the one for whom the oath was taken later.

وَحَدَّثَنِي وَهْبُ بْنُ بَقِيَّةَ الْوَاسِطِيُّ، حَدَّثَنَا خَالِدُ بْنُ عَبْدِ اللَّهِ، عَنِ الْجُرَيْرِيِّ، عَنْ أَبِي، نَضْرَةَ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏

‏ إِذَا بُويِعَ لِخَلِيفَتَيْنِ فَاقْتُلُوا الآخَرَ مِنْهُمَا ‏

‏ ‏.‏

References2 variants
In-Book Reference
Book 33, Hadith 96
USC-MSA web (English) reference
Book 20, Hadith 4568 (deprecated numbering scheme)