迷而知返

迷而知返

Become aware of one's errors and turn back from one's wrong path;