Will Smith apparently gave away the I am Legend Ending, but big deal it was given away 30 years ago. I am Legend is a Remake of Omega Man starring Charlton Heston.
Smith plays a virologist fighting a man-made virus in “I Am Legend”, the film adaptation of Richard Matheson’s 1954 novel of the same title. The two are not quite a shot for shot remake, but you will see Robert Neville Drive a fancy Ford down Empty Streets Just like in the Heston Version. Will Smith however has a Dog for company instead of just a bust of Caesar. IMDB for I am Legend