Sure Al-Baqara

2:186

وَإِذَا سَأَلَكَ عِبَادِى عَنِّى فَإِنِّى قَرِيبٌ ۖ أُجِيبُ دَعْوَةَ ٱلدَّاعِ إِذَا دَعَانِ ۖ فَلْيَسْتَجِيبُوا۟ لِى وَلْيُؤْمِنُوا۟ بِى لَعَلَّهُمْ يَرْشُدُونَ

Und wenn dich Meine Diener nach Mir fragen, so bin Ich nahe; Ich erhöre den Ruf des Bittenden, wenn er Mich anruft. So sollen sie nun auf Mich hören und an Mich glauben, auf daß sie besonnen handeln mögen.

Tafsir 2:186

If they ask you, O Prophet, about how close Allah is and about His answering of prayers, Allah is close to them and knows everything about them. He hears their prayer, and they do not need intermediaries or to raise their voices.

Allah responds to the call of whoever calls Him sincerely, praying to Him; so, let them be devoted to Him and His sacred law, firm in their faith, as that is the best route to Allah’s response – perhaps in that way they might be rightly guided in worldly and sacred matters.