His 311 not out against England at The Oval in July 2012 is still the highest Test score by a South African player.

"I have great memories of the Oval ground and to finally leave it as a player fills me with immense gratitude for what has been," he told the Surrey website (www.kiaoval.com).

Surrey Director of Cricket and former England captain Alec Stewart said Amla was a "true professional"

"Everyone at Surrey County Cricket Club will be sad to see Hashim retire, but we all applaud what has been a phenomenal career. He will quite rightly go down as a great of the game," he added.

"Hashim is a fantastic cricketer and a wonderful person. He has been an incredible resource for the team to learn from on and off the field.

"As well as posting big scores at vital moments, he has also shown his willingness to dig in and do what is needed to get his team a result in tough games."