Psalm 19:14 Let the words of my mouth and the meditation of my heart be acceptable in Your sight, O Lord, my strength and my redeemer.
It is extremely important that you are completely sincere when you ask the Holy Spirit for guidance. God wants to protect you from many disappointments, but can only do so when you want to remain in the center of His will.
What should you do if what you have asked for turned out to be out of the will of God? The first thing is repentance.
Ask God to forgive you, and then ask Him how you should pray to change the problem. He can take the shattered pieces of a broken vessel and make them new again.
The problem did not come overnight, so be patient while you and the Lord work on the process of correcting the problems. Spend more time in praising Him that the answer is on the way. Continue to expect complete victory over the situation.