backtrack
To backtrack is to go back the way that you came. When you backtrack, you are retracing your steps.
He backtracked to the store to buy the candy that he accidentally left there.
The detective backtracked to the scene of the crime to look for clues.