"I've had my turn, and to be honest, I'm exhausted", de Villiers said.
Thanking his fans for the support, de Villiers, who averaged over 50 in both Tests and ODIs, made it clear that he had no plans of moving out and playing overseas.
AB de Villiers joined Jacques Kallis in the middle and that is where the match changed. "Global cricket will be poorer without you, but you will continue to be celebrated by cricket fans around the world", Sehwag tweeted.
AB de Villiers of South Africa celebrates scoring a century during day 3 of the 2nd test against Australia on March 11.
He was also South Africa's captain, wicketkeeper and best fielder at various stages of his career. While Kohli smashed a whopping 973 runs including four hundreds, de Villiers scored 687 runs. After 114 Test matches, 228 one-day internationals, 78 T20 internationals, it is time for others to take over.
"It would not be right for me to pick and choose where, when and in what format I play for the Proteas", he said.
It's not about earning more somewhere else, it's about running out of gas and feeling like it's time to move on. "I will remain the biggest supporter of Faf du Plessis and the Proteas".
His last assignments for the Proteas were in the home series against India and Australia.
De Villiers played in the limited-overs series against Sri Lanka and away in New Zealand, but South Africa played Tests in New Zealand without him and won. He is now in the South African Test squad but the ODI series against India was a clear indication that the South African coaching staff have set their sights on Markram being the next ODI captain.
One of contemporary cricket's greatest batsmen, AB de Villiers, called on Wednesday time on his illustrious global career, claiming to be "out of gas" after 14 years in the top league. He is fourth on the list of South Africa's all-time top run-scorers in test cricket with 8,765 runs. Not one to shy down, de Villiers took the attack back to the Australians with his unbeaten 126 off 146 balls to put the hosts in a position of dominance from which they went on to win by six wickets.
His ODI career remarkably includes the records for the fastest 50 (16 balls), 100 (31 balls) and 150 (64 balls), with the most devastating innings being when he reached his ton in just 31 balls as he blasted 149 from 44 balls against the West Indies in 2015.