Allah said in the Quran:
[Yusufali 57:2] To Him belongs the dominion of the heavens and the earth: It is He Who gives Life and Death; and He has Power over all things.
[Yusufali 57:3] He is the First and the Last, the Evident and the Immanent: and He has full knowledge of all things.
[Yusufali 57:4] He it is Who created the heavens and the earth in Six Days, and is moreover firmly established on the Throne (of Authority). He knows what enters within the earth and what comes forth out of it, what comes down from heaven and what mounts up to it. And He is with you wheresoever ye may be. And Allah sees well all that ye do.
Shaykh Muhammad al-Ihsai in his “Najatul Halikin” quoted words of Imam Ali:
And to this meaning pointed commander of faithful (alaihi salam) by his saying: I am the First and the Last, the Evident and the Immanent
And then he quoted addressing of Sun to Ali:
Peace be upon you brother of messenger of Allah, O the First and O the Last, O the Evident and O the Immanent, and O THE ONE WHO KNOWS EVERYTHING.