It’s called the Treasure of Sierra Madre. But you’re thinking of the right movie with Bogart and the gold.
Thanks.