Charles Stanley said in his book Success God’s Way:
In good times and bad times, on mediocre days and exhilarating days,
in periods of joy and periods of heavy toil, our stance before the
Lord must be, 'Heavenly Father, you’re in charge. I have no success
other than what You help me achieve. I trust You to order my steps.'
I believe that this is the true attitude we need to seek.
We need to focus our hearts and minds on God and just do our best here in this life to glorify him. WE can see this in 1 Cor 10:31 (NIV)
So whether you eat or drink or whatever you do, do it all for the glory of God.
Having said that, God does reward those who love him and seek him earnestly, per Proverbs 28:20 (NIV)
A faithful person will be richly blessed,
but one eager to get rich will not go unpunished.
However, we have to be careful not to focus on the treasures here on Earth, per Matt 6:20 (NIV)
But store up for yourselves treasures in heaven, where moths and vermin do not destroy, and where thieves do not break in and steal.
Ultimately, we need do the work that God has given us to do here on Earth and focus our hearts and minds on him.
That will lead to true success without putting ambition as a "second master".