Each Imam knows the succeeding Imam عليه السلام The words of Allah, the Most High, “Allah commands you to deliver the trust to its people,”(4:58) is a reference to the Imams عليه السلام

Al-Kāfi|Volume 1|Book 4|Chapter 59
Al-Kāfi

Book 4, Chapter 59

Each Imam knows the succeeding Imam عليه السلام The words of Allah, the Most High, “Allah commands you to deliver the trust to its people,”(4:58) is a reference to the Imams عليه السلام

5ـ مُحَمَّدُ بْنُ يَحْيَى عَنْ مُحَمَّدِ بْنِ الْحُسَيْنِ عَنِ ابْنِ مَحْبُوبٍ عَنِ الْعَلاءِ بْنِ رَزِينٍ عَنْ عَبْدِ الله بْنِ أَبِي يَعْفُورٍ عَنْ أَبِي عَبْدِ الله (عَلَيْهِ السَّلام) قَالَ لا يَمُوتُ الامَامُ حَتَّى يَعْلَمَ مَنْ يَكُونُ مِنْ بَعْدِهِ فَيُوصِيَ إِلَيْهِ.
5. Muhammad b. Yahya has narrated from Muhammad b. al-Husayn from Ibn Mahbub from al-‘Ala’ b. Razin from ‘Abdallah b. Abi Ya‘fur from Abi ‘Abdillah عليه السلام who has said the following: “The Imam does not die until he learns who the succeeding Imam is so he would deliver his will to him.”
  • Allamah Baqir al-Majlisi
    Mirʾāt al-ʿUqūl fī Sharḥ Akhbār Āl al-Rasūl (3/182)
  • Shaykh Baqir al-Behbudi
    Ṣaḥīḥ al-Kāfī, vol. 1, pp. 31, 32