Curiosity came to Mars in August 2012 and took this image on January 31, 80 minutes after sunbathing on Mars. In the image appears the Earth, brighter than any other star, and below you can see the Moon.
At the time Curiosity took the photo, there were 160 million kilometers between Earth and Mars.