Hazcams are photographic cameras mounted on the front and rear of NASA's Spirit, Opportunity, Curiosity and Perseverance rover missions to Mars and on the lower front portion of Chinese Yutu rover mission to the Moon. From Wikipedia
In a first for the mission, the rover used its Hazard-Avoidance Cameras to record a 12-hour sequence of its shadow moving across the Martian surface.