Rousseau thought this way:
I bless God for his gifts, but I do not pray to him. Why should I ask him to change for me the course of things, to work miracles on my behalf? I who ought to love above all the order established by his wisdom and maintained by his providence.
In a similar vein, Immanuel Kant scorned the biblical view of prayer as primitive mythology, calling it a “superstitious illusion … for it is no more than a stated wish directed to a Being who needs no such information regarding the inner disposition of the wisher; therefore nothing is accomplished by it, and it discharges none of the duties to which, as commands of God we are obligated; hence God is not really served.”