Sacred Scriptures state that
He who hath known himself hath known God. [Islam]and also
Turn thy sight unto thyself, that thou mayest find Me standing within thee, mighty, powerful and self-subsisting. [Bahá'í Faith]
So it seems the knowledge of God comes as the fruit of the process of self-discovery. The self that is to be investigated is the self described in all the Holy Texts of the world. For example:
We made man in Our own image and after our likeness. [Christianity]and again
I created thee, have engraved on thee Mine image and revealed to thee My beauty. [Bahá'í Faith]