The motion of the planets can be very complicated
During one night, the stars and planets all move in a westerly direction across the sky. The planets don’t move perceptibly relative to the stars in a single night. (The moon, which was regarded as a “planet” in ancient times, is an exception--relative to the stars, it always moves towards the east at a rate of roughly its own diameter every hour. )
The fixed stars all move towards the west from night to night, causing the constellations to change with the seasons.
The planets will occasionally move in the opposite direction relative to the stars--moving towards the east from night to night. This is called retrograde motion.