Temporal Sampling for Forgotten Reasoning in LLMs