We cannot serve God and wealth, but we can, and should, serve God with our wealth. God is the one who graces us with the ability to make wealth, and He instructs us to be good stewards of it as servants of His manifold provision. When we look to making money as the means of meeting our needs, chasing money takes the place of God. When we chase God and seek to please and serve Him with all He supplies, He opens doors for the provision of all we need.
The better we are at serving God and keeping wealth as resource in that work for Him, the more He trusts us to handle the riches of this life for His glory. He doesn’t promise that we will be rich in this life, as the world measures riches, but He does promise our true needs will be met as He opens the storehouses of His provision to our faithful service to Him as God.