O you who believe! respond to Allah and to the messenger when he invites you to that which gives you life, and know that Allah comes between man and his heart and that, He it is towards Whom you will be gathered.
Allah (SWT) knows all that is going on in human hearts/minds 3:11 9, 33:51, 50:16 because He encompasses everything. 4:126.