I will praise you with an upright heart,
when I learn your righteous rules. Psalm 119.7
There are two ways that you can take this verse. (I think both are right.) The first goes something like this. 'I will want to respond with praise when I see how You describe in the Bible how life works well.' That is certainly true, and it is part of your experience. You have seen aspects of life more clearly because of what you've learned from your Bible and, as a result, you are so very grateful to God and are eager to express that gratefulness with your praise.
There is, however, another way to take this verse. 'I will be able to respond with praise when I see how You describe in the Bible how life works well.' We are not born knowing how to praise God. It is a skill that needs to be learned. That's because 'knowing how to praise God' includes 'why I should praise God'. When we start this life we have all sorts of misunderstandings of how it's all supposed to work. That's because we all start this life as sinners. So, there are too many times when we respond to what is happening by praising ourselves or something else or nothing at all. We just don't see the God-centeredness of it all. Nothing just happens. God does stuff - and looks for a response. So, it's as we understand how life actually works - something revealed in the Bible - that we come to see more clearly the God who is behind it all and in it all. We see reality more clearly. It's then that we are able to do what we could not do before. We praise God in a way that is in keeping with the wonder of who He is and what He does.