For where your treasure is, there will your heart be also. Matthew 6:21 KJV https://bible.com/bible/1/mat.6.21.KJV

Your attention follows your heart. So wherever your heart is and wherever your treasure is are the same place. If you value your money more than you value your life, then you have made money your god. What will it profit a man if he gains the wealth of the whole world and yet loses his soul? Jesus asked that question. The quote just says “if he gains the world”, but I looked it up in a few commentarys and the word means the entire wealth of the world.
That would be trillions of dollars today, but what would you do with it? For sure you could buy anything that you set your mind on, but God says that you would lose your soul. He values your soul as being worth more than the wealth of the world. Give your heart to Jesus and seek Him for your treasure.