إِنَّ الَّذِينَ يُبَايِعُونَكَ إِنَّمَا يُبَايِعُونَ اللَّهَ يَدُ اللَّهِ فَوْقَ أَيْدِيهِمْ ۚ فَمَن نَّكَثَ فَإِنَّمَا يَنكُثُ عَلَىٰ نَفْسِهِ ۖ وَمَنْ أَوْفَىٰ بِمَا عَاهَدَ عَلَيْهُ اللَّهَ فَسَيُؤْتِيهِ أَجْرًا عَظِيمًا
The ones who pledge their allegiance to thee do but pledge it to God-For the Hand of God is above their hands. Thus whomever violates his oath, he only wrongs himself, and the one who honors what he had covenanted with God - Indeed, he will be granted the Great Reward.
The Prophet (PBUH&HF) said:
"He who dies not knowing the Imam of his era, has died the death of Al-Jahiliyya ."
(Days of Ignorance; the era before Islam)