And thus did Jeremiah say (Jeremiah 17:5) "Cursed is the man who trusts in man." And what is said of prayer? (Ibid. 7) "Blessed is the man who trusts in the L–rd, and the L–rd will be his trust" — when they pray to Him and he is close to them, viz. (Psalms 145:18) "Close is the L–rd to all who call upon Him."
Those Who Place Their Reliance on God
Mekhilta Tractate Vayehi Beshalach 3:13