It is not correct to add an apostrophe at the end of the word before ago.

You can say:

I will reply to his message in two weeks' time.

I have 30 years' experience

But ago should not be preceded with an apostrophe

I saw my best friend ten days ago.

Three years ago, I decided to leave the UK.