The Prophet ﷺ said that Allah Almighty says, "I am as My servant thinks of Me, and I am with him whenever he remembers Me. If he remembers Me within himself, I remember him within Myself. If he mentions Me in a gathering, I mention him in a better gathering. If he draws near to Me by a hand's span, I draw near to him by a forearm's length. If he draws near to Me by a forearm's length, I draw near to him by an arm's span. And if he comes to Me walking, I come to him at speed."
عن النبي ﷺ يقول: يقول الله تعالى: أنا عند ظن عبدي بي، وأنا معه إذا ذكرني، فإن ذكرني في نفسه ذكرته في نفسي، وإن ذكرني في ملأ ذكرته في ملأ خير منه، وإن تقرب إلي بشبر تقربت إليه ذراعا، وإن تقرب إلي ذراعا تقربت إليه باعا، وإن أتاني يمشي أتيته هرولة.
Bukhari narrated it in the Book of Tawhid (7405) and Muslim in the Book of Remembrance and Supplication (2675), both from the hadith of Amash, "I heard Abu Salih, from Abu Hurairah," and he mentioned it.