The prophet Hosea said to sow for ourselves righteousness. He said to break up our fallow ground and seek the Lord and He will rain righteousness on us.
God told Abraham that his offspring would be as numerous as the stars and Abraham believed Him. God counted it to him as righteousness (Genesis 15:3-6).
Seeking the Lord and believing Him is key. The problem is that our sinful, wicked and deceitful hearts will not seek God (Jeremiah 17:9 Romans 3:10-11 Psalm 14:1-3 Psalm 53:1-3).
Then there was our Savior, the Lord Jesus the Christ. He raised up for Himself 12 Apostles and He laid down His life and bore on Himself God's wrath (Luke 22:47-70 to 23:1-46). And then, in three days, He took up His life again (John 10:17-18) and after appearing to the disciples, He gave them the Holy Spirit (John 20:21-22) and He is the one who convicts people of their sins and causes them to seek the Lord. He breaks up the fallow ground of our hearts and replaces our hearts of stone with a hear to flesh (Ezekiel 36:25-27)
Christ Jesus covered us in His blood and rained righteousness upon us.
God is AWESOME!