Astronomical find hints at Earth's future