Niroshan Dickwella was scratchy but helped Sri Lanka to a steady start after the hosts elected to bat, putting on half-century stands with Upul Tharanga and Kusal Mendis
Angelo Mathews held the Sri Lankan innings superby and stroked his 37th ODI fifty en route a fine unbeaten 97. His knock was instrumental in helping Sri Lanka to 299 for 8
Dasun Shanaka put on a quickfire 21 late in Sri Lanka's innings and helped the hosts in a late surge
Quinton de Kock scored a fine half century even as he kept losing partners
Akila Dananjaya was the wrecker-in-chief, finishing with figures of 6 for 29 - his best in ODIs
South Africa were bowled out for 121, handing Sri Lanka a 178-run win in the fifth ODI
Despite a massive defeat in the final ODI, South Africa won the series 3-2