Correct

痛定思痛

/ tòng dìng sī tòng /
Strokes

Definition

to think of the pain when the pain is gone (idiom)/to ponder about a painful experience

Example

Definition

recall a painful experience; draw a lesson from a bitter experience; bring home a lesson painfully learned