Sahih Muslim Book 20, Hadith Number 4568.
Chapter : When the oath of allegiance has been obtained for two caliphs.
It has been narrated on the authority of Aba Sa’id al-Khudri that the Messenger of Allah (may peace be upon him) said: When oath of allegiance has been taken for two caliphs, kill the one for whom the oath was taken later.