Psalm Chapter 1 shows us how we can stay planted with God. Let's look at it verse by verse.
"Blessed is the man Who walks not in the counsel of the ungodly, Nor stands in the path of sinners, Nor sits in the seat of the scornful;" (Psalm 1:1)
Blessed are you when you don't receive ungodly counsel. It's easier to stay planted with God when you're not surrounded by and listening to the ungodly.
"But his delight is in the law of the Lord, And in His law he meditates day and night." (Psalm 1:2)
Instead, let us meditate on God's Word day and night. And let us not only meditate on God's Word but do and live it out daily.
"He shall be like a tree Planted by the rivers of water, That brings forth its fruit in its season, Whose leaf also shall not wither; And whatever he does shall prosper." (Psalm 1:3)
When you follow verses one and two, verse three becomes the result. You become planted in God, you bring forth fruit, and become prosperous.