Rangana Herath reflected on the "privilege and honour" of representing Sri Lanka following his final Test appearance.
The 40-year-old left-arm spinner was unable to enjoy a dream send-off as his side were thumped by 211 runs in the first Test against England in Galle.
Herath was run out to bring the contest to an end on day four, but he was still able to look back with immense pride on a five-day career that yielded 433 wickets - the eighth-highest figure in Tests.
"In this scenario, it's a bit of an emotional situation. But everybody has to take a decision at the right time," Herath told Sky Sports shortly after leaving the field to a warm ovation.
"I'm thankful for all those years that I have played, those people who have been behind me, especially the team-mates, Sri Lanka Cricket, all the people. I must thank every single person behind me.
"It's been a privilege and an honour to play for my country. In Sri Lanka, we have 22 million people. Very few people get the opportunity to play for Sri Lanka, so it's a remarkable achievement for any player.
"Of course, I'm so proud playing for Sri Lanka, especially in this team. Cricket has given me a lot, I have a lot of respect for the game."
Although Sri Lanka were well beaten in Galle, Herath - who intends to play on in first-class cricket - spoke with optimism about the team's future.
"Of course, as always, losing is not a good result for any team, but this is part of the game," he added. "We didn't play the cricket we used to play. Hopefully the guys will come back strongly for the second and third [Tests].
"I'm 100 per cent confident in the talent we have. If you take the recent past against South Africa, against Australia, we have had a very good winning mindset. We need to get that back. I'm sure the guys will do."
|Warriors´ Green suspended for Hawks clash|
|Asensio: It´s not for me to lead Madrid|
|Rooney ready to enjoy England farewell after pressure of ´Golden Generation´|
|Ludwigsburg stun high-flying Murcia in BCL|
|Rams v Chiefs moved to LA due to Mexico City field conditions|
|Skriniar discussing new Inter contract, confirms agent|
|Former Barcelona boss Martino named MLS Coach of the Year|
|Bell fails to report to Steelers, will sit out rest of season|
|Federer back on track after dismal Thiem display|
|Udinese appoint Nicola after sacking Velazquez|
|Monaco deny they broke rules regarding youth recruitment|
|Del Bosque, Zidane, Lopetegui - The former Castilla coaches Solari follows into Real Madrid hot seat|
|Ozil rejected ´crazy offers´ from Asia, reveals agent|
|Real Madrid appoint Solari on permanent basis|
|LeVert avoids need for surgery, should return this season|
|Neuer confident despite concerns over Bayern Munich form|
|All I ever wanted to do is win, says Sixers signing Butler|
|Pogba: Coming home to United was the best feeling ever|
|Watson among four signing new Bath deals|
|Susanna Dinnage to replace Scudamore as Premier League chief executive|
|Murray commits to Brighton until 2020|
|Rooney rejected chance of pre-World Cup farewell|
|Impressive Anderson thrashes Nishikori|
|Ozil´s Germany absence a ´pity´, says Sane|
|Rooney: I´ll finish my career in the US|
|McIlroy unsure of 2019 European Tour membership|
|Australian Open dismisses concerns of Federer scheduling bias|
|Hue Jackson joins Bengals staff as ´special assistant´|
|Real Madrid confirm Reguilon injury|
|Higuain handed two-match ban for Juve meltdown|
|Kruis ruled out for England as Jones calls up uncapped quartet|
|A year on from Italy failure, Ventura leaves Chievo after four games|
|Bairstow misses out as unchanged England promote Stokes|
|Recalled Alba denies Luis Enrique bust-up|
|´Unhappy´ Christensen won´t push for Chelsea exit|
|Nadal to make Abu Dhabi comeback in December|
|Taijul helps Bangladesh tighten their grip despite Taylor ton|
|Neymar joining Real Madrid wouldn´t hurt Iniesta|
|It´s just team spirit - Livingston not worried by Durant-Green exchange|
|Trippier out of England squad with groin injury|
|Ex-Sri Lanka international Lokuhettige charged by ICC|
|Former England and Chelsea star Joe Cole retires|
|Nets offer support to LeVert following serious leg injury|
|Panenka proud Sergio Ramos imitates his penalties|
|Liverpool´s Alisson seeks patience to reach potential|
|Anthony Davis leads Pelicans, Clippers hold off Warriors in OT|
|Lindelof rues international break for Man Utd|
|Shaqiri confident in more goals for Liverpool|
|Giants too good for 49ers in crunch time|
|Southgate named honorary Yorkshireman|
|Nicky Butt: Manchester United are low on confidence|
|Criticism of Barcelona star Dembele is overblown - agent|
|Thibodeau discusses Butler trade: We thought this was the best deal for us|
|Acuna, Ohtani win rookie of the year awards|
|LeBron James on Lakers’ early season struggles: ‘I almost cracked’|
|Welbeck has successful second operation on broken ankle|
|UEFA warns FFP cases can be reopened based on ´new information´|
|Foakes to keep England place for second Test|
|WATCH: Rooney looking sharp in England training return|
|Mbappe: Money in football is truly indecent|
|Djokovic back to brilliant best as Isner is beaten|
|Celta Vigo replace Mohamed with Cardoso after Real Madrid defeat|
|Joshua intrigued by Usyk, says Hearn|
|Ibrahimovic beats Rooney to MLS Newcomer award|
|Rams WR Kupp out for season with torn ACL|
|Sturridge denies ever gambling on football following FA charge|
|Koeman understands De Ligt´s Eredivisie frustrations|
|Jimmy Butler trade: 76ers acquire Timberwolves star in blockbuster deal|
|´Improve your attitude´ - Deschamps issues Dembele warning|
|Sturridge charged with misconduct over alleged breach of betting rules|