Rangana Herath may retire from international cricket in November, following the three-match Test series against England. Provided he plays every Sri Lanka Test until then, he will finish five Tests short of 100.

Herath had earlier retired from the shorter formats in order to lengthen his Test career, but now, aged 40, he believed it was time to consider stepping away from all formats.

"Maybe my final series will be the England series later in the year," he told BBC Sinhala. "Following this South Africa series, there is another three months until the England series. For now, this is what I've planned for. There comes a time for every cricketer, when they have to stop playing. I think that time has come for me."

Herath is the most successful left-arm bowler in Tests, having taken 418 wickets. He is the last remaining international cricketer to have played in the 1990s, having made his debut in September 1999. It was only after 2009, however, that his Sri Lanka career truly took off. More than 90% of his wickets have come in the last nine years of his career.

Graphic: Rangana Herath is currently the left-arm bowler with the most Test wickets ESPNcricinfo Ltd

"I'm really glad I've been able to play as long as I have," Herath said. "But the most important thing is that of those 18 years, I wasn't able to play for Sri Lanka for about seven of those years. I'm proud of what I was able to do in those seven years - the training I did, and the desire I had, especially."

Herath also said he would talk with Sri Lanka's coach and captain following the South Africa series, before finalising his plans. He believed Sri Lanka's spin bowling would be in good hands following his retirement, with Dilruwan Perera around as an experienced spinner, alongside younger bowlers such as Akila Dananjaya and Lakshan Sandakan.