In prayer our thoughts must be directed exclusively to God, the Omnipresent, and to the meaning of the words that we utter before Him; that is what it means to pray with devotion; and it is better to perform only the prescribed prayers with devotion than to heap up many voluntary prayers and then recite everything without devotion. (א"ח צג, ב; צח, א; מורה נבוכים שם [Orach Chayyim 93:2; 98:1; Guide of the Perplexed, ibid.])
God keeps far from the wicked, but the prayer of the righteous He hears. (Prov. 15:29)
When you spread out your hands, I turn My eyes away from you; even though you pray much, I do not hear it: your hands are stained with guilt. (Isa. 1:15)
He who stops his ear to the cry of the poor will himself cry and not be heard. (Prov. 21:13)
Hannah prayed in her heart; only her lips moved, but her voice was not heard. (1 Sam. 1:13)
Because this people draws near with its mouth and honours Me with its lips, but keeps its heart far from Me, so that their fear of Me becomes a precept of men learned by rote, therefore I will further deal wondrously with this people, wondrously and marvellously. (Isa. 29:13, 14)