Smith, 33, is playing his 117th Test match - 109 of which have been as captain, a world record - and currently stands on 9257 runs. He revealed the news to his team-mates after the third day's play at Newlands. He said finishing on his home ground felt like the perfect ending and that it was something he had been considering since ankle surgery last year.