A bit early IMO. I think he has a bit more left, but it is smart for him to retire at this point, just so he doesn't take any more unnecessary damage. If he feels that it's unsafe for him to continue fighting, who would I be go against that?
I think he'll still have a job in the UFC as in analyst. He'd make a great color commentator as well.