It's A Mad, Mad, Mad, Mad, World(1963)
"Smiler" Grogan runs away from the cops fifteen years in the past and is killed in a crash. Before dying he tells his friends about $350,000 hidden near the Mexican border. Two detectives arrive on the scene to try and solve the strange heist. Captain T.G. Culpepper has been working on the case the past fifteen years and wants to solve it and retire strong. Meeting up with the two detectives they wind up in a very long and strung out chase with one misadventure after another.