"I have no plans to play overseas and I hope to be available for the Titans (his domestic side)", de Villiers said. "And after the fantastic series wins against India and Australia, now feels the right time to step aside", added de Villiers.
Till November 2017, De Villiers was poised to feature in the showpiece event in England.
AB de Villiers on Wednesday announced his retirement from worldwide cricket. "Thank you great man for your incredible Match winning Performances, Skill Captaincy and most of all your Humility", Donald said on the micro-blogging website. To cricket fans around South Africa and around the world, thank you very much for your kindness, your generosity and, today, your understanding.
"One of the all time greats of the game, many congratulations AB de Villiers on an outstanding career".
Speculation about de Villiers' long-term future began in late 2015, after a disastrous tour of India, which South Africa lost the Tests 3-0, thereby losing the No.1 ranking and having their nine-year unbeaten run on the road broken. In this exclusive interview, AB spoke about his travels to India, his ability to play shots all around the ground, the best compliment he has received and also about how he wants to spend more time with his family now - The main reason why he chose to call time on his worldwide career. While Kohli smashed a whopping 973 runs including four hundreds, de Villiers scored 687 runs.
GETTY IMAGES AB de Villiers of South Africa celebrates scoring a century during day 3 of the 2nd test against Australia on March 11
All up, De Villiers played 114 tests, 228 ODIs and 78 T20 internationals, and the 34-year-old says "the time is right" for him to hang up his boots, bringing a close to a sterling 14-year career. It's about running out of gas and feeling that it is the right time to move on. Where Amla (65), Faf du Plessis (62) and Rossouw (61) all were cut off, de Villiers surged to a scarcely believable 162 not out from 66 balls, striking 17 fours and eight sixes to set up a 257-run hammering of West Indies. It would not be right for me to pick and choose where and what format to play for the Proteas. His last test series was an historic first win for South Africa over Australia at home since 1970. He is fourth on the list of South Africa's all-time top run-scorers in test cricket with 8,765 runs.
The Test series against Australia was perhaps Markram's coming of age.
Former South Africa skipper AB de Villiers sprang a surprise on Wednesday by announcing his retirement from all forms of global cricket with immediate effect.
It was the ODI format, perhaps, that de Villiers enjoyed most. He was the most exciting player on the planet at this point, bludgeoning his way to the fastest 150 in ODI history, and it is frightening to think how many he would have scored had he come in earlier.