Psalm 78:34

34  When he killed them, they sought him;

they repented and sought God earnestly.