If a player becomes Exhausted before they Rest, any Temples where they have reached the last space during the Night Phase are not completed. Their Heroes returns to their Castle, losing their progress in the Temples, even if they were on the last space.