Have you ever made a deal with God? You know get me out of this and I will _______! You are in good company. Martin Luther did. King David did.
Luther found himself stranded in a storm and promised God if he saved him Luther would join the monastery. God did; Luther did. We have the reformation as a result.
David cried to the Lord that if He saved him David would keep God’s commandments. God did; David tried and as a result we have the Psalms.
In Psalm 119 David recounts this experience and he links his cry for deliverance with the Word of God. Read 145 – 148. David connects the Word of God to his prayer.
One of my takeaways from this is that to be effective in prayer I have to both be in and obedient to the Word of God.