SOUTH AFRICA, MAY 24: Former South Africa Test captain AB de Villiers said he had "run out of gas" as he announced his retirement from international cricket.
The 34-year-old has played in 114 Test matches, 228 one-day internationals and 78 Twenty20 matches for the Proteas.
He took time away from Test cricket in 2017, missing the series against England that summer, but returned to the red-ball side in December.
"I've had my turn and, to be honest, I'm tired," he said. "This is a tough decision. I've thought long and hard about it and I'd like to retire still playing decent cricket.
"It would not be right for me to pick and choose where, when and in what format I play for the Proteas. "For me, in green and gold, it must be everything or nothing."
'One of the all-time greats'
De Villiers may rethink South Africa comeback if World Cup post...
De Villiers made his international debut in the Test series against England in 2004 and played in a limited-overs match a year later.
He scored 8,765 Test runs for South Africa and has a batting average of over 50 in both Test and ODI cricket.
De Villiers' 22nd - and final - Test century came against Australia in March.
A former Test captain, he holds the record for the fastest one-day century, reaching three figures in just 31 balls against West Indies in January 2015.
He also holds the record for the fastest Test century by a South African, making 100 from 75 balls against India in 2011.
"AB is one of the all-time greats of South African cricket who has thrilled spectators around the world," Cricket South Africa president Chris Nenzani said.
"It goes without saying that he is going to be greatly missed wherever international cricket is played."
His final appearance for South Africa came in Johannesburg, where the Proteas beat Australia by 492 runs and clinched the series 3-1.
He kept wicket on occasion and recently featured for Royal Challengers Bangalore in the Indian Premier League.
De Villiers added in his video message that he has "no plans" to play overseas, and he hopes to continue to be available for domestic cricket in South Africa.
'A fantastic ambassador'- what they said
England captain Joe Root, speaking to Test Match Special: "AB is one of the few players that kids around the world watch and say they want to be like.
"You see the lads watching the cricket when it's on in the dressing room - when he comes out and bats, I want to sit and watch, because of the way he bats. He's done some tremendous things in the game."
Ex-Proteas wicketkeeper Mark Boucher: "I remember AB on his first day out for Proteas. What an inspiration, person and player he turned out to be. Thank you for everything you have done and been for your country, teammates and fans."
Ex-South Africa pace bowler Morne Morkel, speaking to Sky Sports: "It's a big shock, especially with the World Cup around the corner. But he's played for 14 years and played all formats and after a while all the miles get to you.
"He's been a great servant, he's a fantastic ambassador, and it's a sad day for South Africa and for cricket. We're going to miss him dearly."