It was a fumble recovery.
What many do not realize, is later in the same game he returned another fumble for A TD, but they only remember the safety he scored for the 49ers.
And it was a safety for the 49ers, not a touchback.