Answer by taking a quote from the following article:

Deshabandu Muttiah Muralitharan (Tamil: muttaiyaa murlliitrnnn, Sinhalese: muttyiyaa murlidrn; also spelt Muralidaran; born 17 April 1972) is a former Sri Lankan cricketer who was rated the greatest Test match bowler ever by Wisden Cricketers' Almanack in 2002. He retired from Test cricket in 2010, registering his 800th and final wicket on 22 July 2010 from his final ball in his last Test match. Muralitharan holds the world record for the most wickets in both test and one-day cricket.

On 7 July 2010, Muttiah Muralitharan formally announced his retirement from Test cricket at a media briefing in Colombo. He confirmed that the first Test Match against India due to commence on 18 July, 2010 would be his last, but indicated that he was willing to play One-Day Internationals if it was considered necessary leading up to the 2011 World Cup, which Sri Lanka co-hosted. He identified Sri Lanka's World Cup win of 1996 as his greatest moment as a cricketer. He also stated that there were some regrets during his 19-year playing career. "Not winning Test Matches in South Africa, Australia and India are regrets. But I am sure we will win very soon."  At the start of his last match, Muralitharan was eight short of 800 wickets. At the fall of the ninth wicket of the Indian's second innings Muralitharan still needed one wicket to reach the milestone. After 90 minutes of resistance Muralitharan was able to dismiss the last Indian batsman Pragyan Ojha on the last delivery of the final over of his Test career. By doing so he became the only bowler to reach 800 wickets in Test cricket. Sri Lanka won the match by 10 wickets, the seventh time they have done so and the second time they have done it against India.  In late 2010, Muralitharan announced his retirement from international cricket after 2011 Cricket World Cup, co-hosted by Bangladesh, India and Sri Lanka announcing "This World Cup will be my last outing. I am retiring totally from international cricket thereafter. My time is up. I've signed up to play for two years in IPL." His final ODI appearance in Sri Lankan soil came during the semi0final clash against New Zealand, where Muralitharan took the wicket of Scott Styris in his last delivery. His last ODI was against India in World Cup final at Mumbai, however Sri Lanka lost the match and Murali couldn't take any wicket.

when was his last match
At the start of his last match, Muralitharan was eight short of 800 wickets. At the fall of