Do not forget to stir in a generous amount of thanksgiving before you get the answer. If we do not appreciate God we will not even pray properly much less give thanks. Thanksgiving implies gratitude. Gratitude implies submission to God. When we become convinced that God works all things together for good, we are grateful to a sovereign God.
Thanksgiving indicates a heart that is at rest.
We come to rest in the will of God and submit to whatever he chooses to do. Whatever the outcome we rest in God's sovereign hand. Thanksgiving means that we have peace about how God is going to answer. Thanksgiving is one of the five categories of prayer. The other four categories are confession, praise, petition and intercession.