For the purposes of this thread, I’d like to avoid the whole, “Well if God answers prayers, doesn’t that go against the Divine Plan?” question. Here, we assume that God does answer prayers.
Let’s suppose that you meet someone and you want to date them. Now, you’ve just met her (or him, doesn’t matter), so you have no idea that she is a drug addict/child abuser/control freak/folk music fan. Still, you think she’s awesome, so you pray to God that He will let the two of you hook up.
Now, God obviously knows that she would be poison to your life. Might He answer this prayer with a yes and allow you to learn from the situation, or does He refuse because he knows she wouldn’t be good for you?