Luna 1
Luna 1 was intended to impact the Moon's surface. However, on January 4, 1959, it passed within 5995 km of the Moon and began to orbit the Sun between the orbits of Earth and Mars, where it is still orbiting now, on a 450 day orbit. Thus, Luna 1 became the first spacecraft to orbit the Sun.