He kept saying he didn't do it but in the end he said he had done it. (*) at the end (*) finally (*) at last (*) by the end
This is a companion discussion topic for the original entry at https://english.best/questions/23241,he-kept-saying-he-didnt-do-it-but-uin-the-endu-he-said-he-had-done-it/