Published: 2019-08-08 23:36:45 BdST
The 36-year-old played international cricket for 15 years, scoring almost 10,000 Test runs and close to another 10,000 in limited overs internationals.
He is the only South African to have scored a triple century in Test cricket – a record 311 not out against England at The Oval in mid-2012 – and is second behind Jacques Kallis in Test runs for the country (9,282).
“I learnt many lessons during this incredible ride, made many friends and most importantly shared in the love of a brotherhood,” he said in a statement released by Cricket South Africa (CSA).
His retirement follows swiftly on from that of his fast bowling colleague Dale Steyn and is no surprise after a disappointing World Cup in England in May and June.
Amla struggled initially at Test level, with his batting technique heavily questioned, but after a first Test century against New Zealand at Newlands in 2006 he established himself as a key player in the South Africa set-up.
He went on to top the International Cricket Council rankings for both Test and ODI batsmen.
Amla was appointed Test captain in 2014 but gave up the job during England’s visit to South Africa at the beginning of 2016 when it was affecting his form.
“It is always sad to bid farewell to one of the true legends of the game, but at the same time this is rather an occasion to celebrate the richness that Hashim has brought to the game around the world both on and off the field,” said CSA chief executive Thabang Moroe.
Amla will continue to play domestic cricket.