God hears any type of prayers made to it. It does not matter whether a prayer is made at a religious place or in your head.