This shot was taken on November 28, 2022 by Artemis 1, at its farthest distance from earth (430,000 km) and 77,000 km from the moon.
It was a rare opportunity to see both celestial bodies aligned in this same field of view.
More info:
https://apod.nasa.gov/apod/ap260131.html