Ps. 37:3-4 Trust in the LORD and do good. Then you will live safely in the land and prosper. Take delight in the LORD, and he will give you your heart's desire.
If you are really trusting in the Lord, what you are doing will be good. You cannot be right with the Lord and not do good. Don't doubt the good that you are doing. Whether you recognize it or not, goodness is a natural by-product of the life that lives in trust in the Lord. The Lord promises safety for those who trust in Him. Satan cannot snatch anyone away from God who are trusting in Him.
The key to the Lord giving you what your heart desires is to delight yourself in Him. It sounds easy enough, but is it? If it is, then why then do so many desires go unfulfilled? Could it be that we aren't actually delighting in Him? What does it mean to delight ourselves in the Lord?
A simple answer would be that we align ourselves up with the heart of God and desire what He desires for us. It is agreeing with Him that what comes our way is, including the bad times of life, good and that our Father knows best in all things. We cannot delight in the Lord until we first understand and accept the fact that it is not about us or our comfort, it's all about the Lord and His will for our lives.
We cannot know how to delight in the Lord unless we are regularly spending time in the Word of God and in our prayer closets. Only as we linger in the Lord's presence do we understand God's heart and will for us.
When we delight in the Lord, we will want what He gives to us and take pleasure in it. We will not waste our desires on that which the Lord withholds from us. When we find ourselves longing for something that is bad for our souls, we will turn to the Lord and let Him change our desires. We will make the Lord the priority of our lives.