retrace · verb /ˌriːˈtreɪs/
retrace your steps
C2 to go back somewhere the same way that you came
Dictionary example:
I was lost so I retraced my steps.
Learner example:
Mentally retracing his steps of the morning, he remembered rushing out of his place at the last minute. (Certificate of Proficiency in English; C2; Italian)