It appears How I Met Your Mother’s twist ending of killing off Tracy was subtly foreshadowed all along by Bob Saget’s casting as Future Ted. Throughout the series, Ted Moseby is telling his teenage children the story of how he met their mother, with young Ted being portrayed by Josh Radnor and Future Ted/The Narrator being voiced by Bob Saget — until the show's final scenes.
Read more on screenrant.com