The Imamat (Leadership with Divine Authority) is a Covenant from Allah, the Most Holy, the Most High, Delivered as such by the preceding Imam to the succeeding Imam (a.s.) one after the other

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