The meaning is, why pray to God if your just going to hear what you want and not what he's going to tell you.
Its like the story of the rich man who wanted to get into heaven, so he asked jesus what he had to do to get in there. And jesus told him to give up all his worldly belongings. Then the man called jesus a fool and left. He didn't wanna hear the real truth, just his perception of the truth.