Movie how a guy trying to save a girl in the past because he knows that she will die. In the end of the film he is jumping in a car with another guy instead of her. Then that guy is locking up the doors and after some seconds that car is blowing up at the road.
Just a guess…..
Fetching Cody (2005)
https://www.imdb.com/title/tt0475271/?ref_=nv_sr_srsg_0
You might be referring to “The Life of David Gale”
Sorry! I replied to the wrong inquiry.
Or maybe…..
Retroactive (1997)
https://www.imdb.com/title/tt0117468/?ref_=nm_knf_i3