What is the version of the following sentence with correct punctuation?

Daniel decided to spend 10 to buy his winning lottery ticket during a shopping trip
Daniel decided to spend $10 to buy his winning lottery ticket during a shopping trip.