With Pakistan chasing 136 for victory, the 39-year-old left arm spinner showed his class with a match-winning six for 43 in the second innings for a match haul of 11 wickets.
The Proteas are yet to reach the summit clash of the World Cup, having been knocked out at the semifinal stage four times.
South African batsmen will go into the fifth ODI as a more confident unit, having learnt from their mistakes against the Indian spinners.
IMAGES from Day 3 of the 3rd Test played between South Africa and India at the Wanderers stadium in Johannesburg on Friday
South Africa won their first game at the World Cup, beating Afghanistan by nine wickets (DLS). Imran Tahir finished with figures of 4 for 29, the best figures by a spinner in the tournament so
IMAGES from the 4th ODI played between India and South Africa at the Wanderers in Johannesburg on Saturday
India have a chance to hold the Proteas by the scruff of their neck with the latter seemingly at their weakest following back-to-back defeats,
Rajneesh Gupta throws up all the numbers of how both teams have fared in Twenty20 Internationals.
Srinivas Bhogle and Purnendu Maji identify the Most Valuable Players of World Cup 2019.
Having suffered a minor setback in the previous game, India will look to recover and close out this eight-week long tour with a series win.
Virat Kohli says he doesn't want any tags attached to his name and performances. We'll respect his request -- we'll only attach numbers!
Srinivas Bhogle and Purnendu Maji identify the Most Valuable Players at World Cup 2019.
J P Duminy and Heinrich Klassen hit superb half-centuries to steer South Africa to a six-wicket victory over India in the second Twenty20 International, in Centurion, on Wednesday night.
The Men in Blue won the first T20I at Johannesburg by 28 runs and a victory on Wednesday will see them wrap up another series win on this tour.
With an unassailable 3-0 lead in hand, India need just one more win to claim their maiden ODI series triumph on South African soil.
Umpires Ian Gould and Aleem Dar began discussion and soon match referee Andy Pycroft joined them on the ground. They initiated deliberations with both the captains, players were called off the ground and play never resumed after that.
On a pitch offering extensive lateral movement, a target of 175 could prove to be a match-winning one for India.
India aim to stay afloat against daunting South Africa in the second Test
Bowler Jaydev Unadkat in another player to watch out for as the three-match series in the shortest format kicks off in Johannesburg on Sunday
Having won the series, India would like to carry on momentum forward, especially with the three-match T20I series to follow soon after. Yet, the visitors would also like to find a balance between going all out in a dead rubber and resting a few players keeping in mind a long overseas schedule later this year.
India will look to crush a South African revival before it becomes a threat to their pursuit of a maiden ODI series triumph here when the two sides clash in the fifth one-dayer, on Tuesday.
Kohli's decision didn't work as the spin duo failed to contain Proteas
Mohammed Shami led India's fight-back with a career-best five-wicket haul as India snapped nine wickets for 53 runs to dismiss South Africa for 177 and avoid a humiliating whitewash in the three-match series.
The three-Test South Africa series is the first of a gruelling 2018-19 season that includes tours to England and Australia.
A buoyant India will look to cash in on South Africa's injury woes, compounded by the loss of captain Faf du Plessis, when the two sides meet in the second One-Day International in Centurion on Sunday.
Virat Kohli will be facing the toughest battle of his nascent ODI captaincy career when defending champions India take on South Africa in a do-or-die match of the ICC Champions Trophy, in London, on Sunday.
The visitors won the first two matches of the series in Durban and Centurion by six and nine wickets, respectively, dismantling the home side with consummate ease.
India have never won an ODI series in South Africa, having lost 5-2 in 1992-93, 4-0 in 2006- 07, 3-2 in 2010-11 and 2-0 in 2013-14.
India's batting woes in South Africa continued as the visitors folded up for 187 on Day 1.
Faced with the prospect of a humiliating 0-3 series whitewash, a desperate India would be aiming to bounce back to winning ways against an unrelenting South Africa in the third and final Test, starting in Johannesburg, on Wednesday.
590 cricketers -- including 370 Indian players and 220 overseas players -- will go under the hammer during the two-day mega auction in Bengaluru on February 12 and 13.
India will meet Bangladesh in the semi-finals in Birmingham on Thursday.
The year is coming to an end and overall, it's been one hell of a year! We have had our share of ups and downs and we look forward to a better 2020. While we count down the days to the new year, let's also reflect on those who gave us strength to stand up in what we believe, the courageous who didn't bow down and the ones with gumption who inspired us to be better. We, Rediff.com, have selected 26 personalities, who we think are worthy of the title -- HERO OF THE YEAR -- and we want you, dear readers, to choose your hero!
Shardul Thakur made his first appearance in the series count with a four-wicket haul as India yet again choked the South African batsmen, dismissing them for a below-par 204, in the sixth and final One-Day International, in Centurion, on Friday.
"This will probably be the biggest World Cup, so there will be great expectations and I know we will do very well for the people of the West Indies," he added.
With this win, Australia have now gained a 12-2 lead in the series. The team had already secured the Ashes in the first T20I.
Rajneesh Gupta profiles the cricketers playing the World Cup 2019.
Rajneesh Gupta checks out the numbers for Virat and Faf and their boys.
Rajneesh Gupta presents all the fascinating career numbers of players in the World Cup.