26 For God gives wisdom and knowledge and joy to a man who is good in His sight; but to the sinner He gives the work of gathering and collecting, that he may give to him who is good before God...1 To everything there is a season, A time for every purpose under heaven: (Ecclesiastes 2:26, 3:1)
There would be no just comparison, contrast, or relation of any kind between these two outcomes, nor would one necessarily follow the other if the Scriptures didn't tell us several times, in several different ways, that the wealth of the sinner is laid up for the just, and if the wisdom, knowledge, and joy that God gives the man that is good in His sight weren't specifically related to these financial transfers His Word talks about.
Some people like to twist Romans 3:10 and Matthew 19:17 to disqualify us from the blessings, while others oversimplify by saying our goodness is from Lord Jesus, when Lord Jesus in Matthew 19:17 complicates the matter by disclaiming being good. But the goodness spoken of in Ecclesiastes 2:26 is a goodness in proportion to fearing the Lord, departing from evil, and being good stewards of the wisdom, knowledge, and joy that He delegates through the preaching of the Gospel.
To everything there is a season, a time for every purpose under heaven. Being good in His sight is of course an imputed goodness in His sight. You care for widows, orphans, strangers, prisoners, and relatives according to James 1, Matthew 25, 1Timothy 5 and for animals according to the Hosea 2:18 Covenant, then Matthew 7:24-27 says your house is built on the rock. Comparing 2Corinthians 5:21 and 2Corinthians 8:9 with Ecclesiastes 2:26 and Hebrews 12:2 with also Galatians 3:13, then the rebuke of Lord Jesus to Judas over the ointment He was being anointed with at the last supper means that He, Himself, was being accounted as this Ecclesiastes 2:26 "sinner" who gathered and collected that He could give to him who believes the Gospel.
The crucifixion was the season and the time for every purpose under heaven can't be divorced in our thinking from every purpose of heaven. His Blood remits our debts in Ephesians and Colossians because the Blood was what gathered and collected in order to give to those who obey the Gospel. 1Corinthians 1:30 calls Lord Jesus our wisdom, righteousness, sanctification, and redemption.