“And we receive from Him whatever we ask because we [carefully and consistently] keep His commandments and do the things that are pleasing in His sight [habitually seeking to follow His plan for us].”
1 John 3:22 Amplified Version
“Habitual and continuous disobedience are a hindrance to the blessing of God, a hindrance that can block answers to prayer. It’s impossible to have fellowship with the Lord if we are living in outright disobedience.
Examine yourself today to see if there is any habitual sin. Recommit your life to God and remember this: obedience opens the doors of Heaven. Obedience brings answers to prayers.”
Source — Devotional in the Bible App called: What Hinders Answers To Your Prayers