Create a substitute.
I'm not religious, but I do consider myself to be a spiritual person and I have a lot of religious friends. It used to bother me when they would try to impart empirically religious messages on me when I came to them for advice. Then I got some great advice from a very wise woman. She said that most of the time this type of advice is indeed helpful if you just substitute the word "God" or whichever other higher power that might be making you uncomfortable and just substitute it for a word that you believe in.
For example, if someone tells you "Jesus works in mysterious ways" and you're agnostic, just change it in your mind to "The Universe works in mysterious ways."
People mean well when they offer advice so I'm glad I've found a better way to interpret it.