Al-Kāfi

Hadith 460
twelve-imams
3ـ مُحَمَّدُ بْنُ يَحْيَى عَمَّنْ ذَكَرَهُ عَنِ الْحَسَنِ بْنِ مُوسَى الْخَشَّابِ عَنْ جَعْفَرِ بْنِ مُحَمَّدٍ عَنْ كَرَّامٍ قَالَ قَالَ أَبُو عَبْدِ الله (عَلَيْهِ السَّلام) لَوْ كَانَ النَّاسُ رَجُلَيْنِ لَكَانَ أَحَدُهُمَا الامَامَ وَقَالَ إِنَّ آخِرَ مَنْ يَمُوتُ الامَامُ لِئَلا يَحْتَجَّ أَحَدٌ عَلَى الله عَزَّ وَجَلَّ أَنَّهُ تَرَكَهُ بِغَيْرِ حُجَّةٍ لله عَلَيْهِ.
3. Muhammad ibn Yahya has narrated from those who he has mentioned from al-Hassan ibn Musa al-Khashshab from Ja’far ibn Muhammad from Kiram from abu ‘Abdallah (a.s.) who has said the following. “If of all the people there will remain only two man one of them will be the Imam. He also said, ‘The last person to die will be the Imam (a.s.) so that no one could complain against Allah leaving him without Imam, the person with Divine authority over him.’”
Source: Shaykh Muḥammad b. Yaʿqūb al-Kulaynī