Al-Imran 164
لَقَدْ مَنَّ اللَّهُ عَلَى الْمُؤْمِنِينَ إِذْ بَعَثَ فِيهِمْ رَسُولًا مِنْ أَنْفُسِهِمْ يَتْلُو عَلَيْهِمْ آيَاتِهِ وَيُزَكِّيهِمْ وَيُعَلِّمُهُمُ الْكِتَابَ وَالْحِكْمَةَ وَإِنْ كَانُوا مِنْ قَبْلُ لَفِي ضَلَالٍ مُبِينٍ
Lakaad mannaalleahu aaleal mu’mineena iz baaasa feehim rasoolan min anfusihim yatloo aalayhim eayeatihee va yuzakkeehim va yuaallimuhumul kiteaba val hikmata, va in keanoo min kaablu la fee daalealin mubeen(mubeenin).
Certainly, Allah confers a Gift (the Spirit of the Imam of the Time) upon (the heads of) the believers when He sends in them a Messenger from among themselves. He explains to them His Verses and cleanses them and teaches them the Book and Wisdom, while before that (before wishing spirit to reach Allah and obey the messenger), they were indeed in a manifest Darkness.

