According to Ali, the base of religion is the gnosis of God. He held: "The height of gnosis is His confirmation. The height of confirmation is Tauhid. The height of Tauhid is the acknowledgment of the supremacy of God in all matters. He is beyond all attributes. No particular of attribute can give an idea of His exact nature. He is not bound by anything; all things are bound by Him. He is Infinite, limitless, boundless, beyond time, beyond space, beyond imagination. Time does not affect Him. He existed when there was nothing. He will exist forever. His existence is not subject to the law of birth or death. He is manifest in everything, but He is distinct from everything, He is One. He is not the cause of anything, everything is because of Him. He is unique. He has no partner. He is the Creator. He creates as well as destroys. All things are subject to His command. He orders a thing to be and it is. Ali enjoined the severance of the heart from all things save God. Ali was asked what was the purest thing that could be acquired, and he said, "It is that which belongs to a heart made rich by God". When Ali was asked about gnosis, he said, "I know God by God, and I know that which is not God by the Light of God. " When asked whether he had seen God he said that verily he had seen God, for he could not worship Him unless he knew Him.
"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari