Imam Ghazali states in his work, The Beginnings of Guidance:
The Proper Manners of Keeping Allah’s Company
Know that the companion who never leaves you whether you are resident or travelling, whether asleep or awake, both in your life and after your death is your Lord, Master, Protector, and Creator.
And whenever you make remembrance of Him, He is your intimate partner–for Allah Most High says, “I am the intimate partner of one who makes remembrance of Me.”
And whenever your heart is broken in sadness over your shortcomings in fulfilling your religious responsibilities, then He is your companion and indeed close–for Allah Most High says, “I am with those broken-hearted for My sake.”
And Allah alone gives success.