Scientists predict that our Sun will eventually become a planetary nebula after turning into a red giant in about 5 billion years, engulfing our planet in the process.
The Sun is expected to reach the end of its life in about another 10 billion years, increasing in brightness by 10 percent every billion years and eventually rendering Earth uninhabitable.
Computer modeling suggests that our Sun is most likely to shrink down from a red giant to become a white dwarf and then end as a planetary nebula, similar to 90 percent of other stars.
https://www.sciencealert.com/scientists-predicted-how-the-sun-will-die-and-it-will-be-epic