When a star's mass is ejected during a supernova, it expands quickly. Eventually, it will slow and form a hot bubble of glowing gas. A white dwarf will emerge from this gas bubble and move across the galaxy.
The afterglow of short gamma ray burst that was detected 10 billion light-years away is shown here in a circle. This image was taken by the Gemini-North telescope.