Knowledge, power, and the other attributes are not separate from Allah’s essence.
Abd al-Haqq Haqqani and Mufti Muhammad Farid explain divine nearness and accompaniment without treating the assertion of knowledge as a denial of essential accompaniment. Since the essence and attributes are not detached, reference to perfect knowledge does not negate the perfection of the essence.