The former Sri Lanka captain Mahela Jayawardene will retire from Test cricket following the home series against South Africa and Pakistan next month.
The stylish right-handed batsman has played 145 Tests and his 11,493 runs shares sixth spot, along with compatriot Kumar Sangakkara, on the list of highest scorers in the longest format of the game.
The 37-year-old has scored 33 test centuries and enjoys a batting average of a little more than 50 runs per innings.
Jayawardene will, however, continue play the 50-over format for Sri Lanka, making himself available for next year's World Cup in Australia and New Zealand.
He says it wasn't an easy decision to make given that it has been a great privilege and honour representing his country over the past 18 years, but he believes this is the right time.
The island nation will host South Africa in a two-test series starting on Thursday before another two-match series against Pakistan next month.