Al-Kāfi

Hadith 461
twelve-imams
4ـ عِدَّةٌ مِنْ أَصْحَابِنَا عَنْ أَحْمَدَ بْنِ مُحَمَّدٍ الْبَرْقِيِّ عَنْ عَلِيِّ بْنِ إِسْمَاعِيلَ عَنِ ابْنِ سِنَانٍ عَنْ حَمْزَةَ بْنِ الطَّيَّارِ قَالَ سَمِعْتُ أَبَا عَبْدِ الله (عَلَيْهِ السَّلام) يَقُولُ لَوْ لَمْ يَبْقَ فِي الارْضِ إِلا اثْنَانِ لَكَانَ أَحَدُهُمَا الْحُجَّةَ أَوْ الثَّانِي الْحُجَّةَ. الشَّكُّ مِنْ أَحْمَدَ بْنِ مُحَمَّدٍ.
4. A number of our people has narrated from Ahmad ibn Muhammad al-Barqi from Ali ibn Isma‘il from ibn Sinan from Hamza ibn al-Tayyar who has said the following. “I heard Imam abu ‘Abdallah (a.s.) saying, ‘Would there remain on earth no one except two people one of them will be the person with Divine authority or the second one will be the person with Divine authority (uncertainty is from the narrator).”
Source: Shaykh Muḥammad b. Yaʿqūb al-Kulaynī