We are supposed to learn lessons from the past and apply them to the present and pray to avoid making the same mistakes that were made in the past. Everything in the universe will destroy itself if the thing does not follow the will of Allah. Every mistake is made in the present which instantly becomes the past.