The Issue that even if only two people would remain on earth one of them would certainly be the Imam, the person with divine authority

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