Star Trek III :
The Search For Spock

Captain Kirk "steals" the soon-to-be-decommissioned USS Enterprise, to travel to the Genesis planet to retrieve Spock's body. Kirk and the gang reach the planet, and save Spock from the klingons, but at the cost of Kirk's son's, David's, life.
Kirk self-destructs the Enterprise, and hijacks the Klingon Bird Of Prey to fly to Vulcan, where Spock is given back his life in a Vulcan ritual.