The spacecraft’s High Resolution Imaging Science Experiment (HiRISE) caught Curiosity in its sights as the rover was climbing the lower slopes of Mount Sharp, also known as Aeolis Mons, after exploring the active sand dunes lower on the mountain.
The image was snapped on June 5 when Curiosity was en route to investigate the outcrops of hematite at the Vera Rubin Ridge, according to the official website of NASA Jet Propulsion Lab.
The rover itself appears in this image "as a blue dab against a background of tan rocks and dark sand".
The rover has been taking pictures and gathering data since it landed near Mount Sharp nearly five years ago, in August 2012.
It should be noted that the MRO obtains images of Curiosity doing its work at least a few times every year since the rover was deployed.