Spirit is beyond the realm of creation. It is directly connected with Alam e Lahoot(Unity of attributes and names) which is from Amr Allah (Command of Allah), Therefore Spirit already knows everything including its own source.