The novelization had his last line be in Rey’s head after he dies: “Noones ever really gone.” Not only is it a nice callback to Luke, but it also explains why Rey suddenly looks happy as she’s flying away in her X-wing.
Too bad he never said that anywhere.