God sees all and knows all. He sees when you’re in a situation that is not set up to be fair to you or that is not in your overall, long run best interest. He sees every underhanded thing that happens to you and he hears the conversations that bring those underhanded things about. He knows all of the policies that are in place that work against you, that rob you of energy, money, time.
He also sees when in the midst of dealing with those things, you remain thankful to Him. He sees your faithfulness and He’s waiting for the cry of your heart to come up to Him.
In sending your answer it may even seem like something worse has happened, but as the smoke clears you will see that he orchestrated whatever it was just to free you up to receive the thing that your grateful heart has positioned you to receive.
Your flesh may scream so loudly that there is nothing to be thankful for in your situation, but that’s not true. (IN everything, give thanks. I Thessalonians 5:18) Notice that the scripture does not say FOR everything, but IN everything, which simply means that no matter what you are having to walk through, there is something to give thanks to God for. When you are thankful for what He has already done, and are bold enough to ask Him for what you desire, you place yourself in the center of obedience to His word (Philippians 4:6) and He HAS to honor His Word because He CANNOT lie. He will come through for you.