While the Bible places strong emphasis on obedience, it’s important to remember that believers are not justified (made righteous) by our obedience. Salvation is a free gift of God, and we can do nothing to merit it.
True Christian obedience flows from a heart of gratitude for the grace we have received from the Lord:
And so, dear brothers and sisters, I plead with you to give your bodies to God because of all he has done for you. Let them be a living and holy sacrifice—the kind he will find acceptable. This is truly the way to worship him (Romans 12:1)