Translation:Po pěti letech se vrátil domů.
Why "On se po peti letech vratil domu" is wrong?
It is a correct Czech sentence. Did you report? We tend to omit the personal pronouns quite often, but if you want to stress the "he" it can be there.