After captaining the team in a 1–0 loss in the final game of the UEFA Euro 2012 qualifying phase against Slovenia, Stanković announced his retirement from international football after 13 years since his debut against South Korea in 1998. After a few years of speculation as to whether or not he would play a testimonial match, he ended up doing so on 11 October 2013. Appearing in 103 matches, he is the most capped player for Serbia, playing one more match than Savo Milošević. His testimonial match was played against Japan, in which he played till the tenth minute, matching the number on his shirt, making room for Ivan Radovanović. He received a standing ovation as he said his final goodbye to football. Serbia went on to win the match 2–0.