This is an image of Earth and the moon acquired by the HiRISE camera on NASA's Mars Reconnaissance Orbiter which is in orbit around Mars. The distance from MRO to Earth at the time the image was taken was 142 million kilometers (88 million miles). Hard to image such details could be drawn out in an image taken from such a distance as that.
A similar image of Jupiter was also acquired by MRO some months ago.