Tim Cahill will play for the Socceroos during November's friendly against Lebanon in Sydney - in what will be his final appearance for the green and gold.
The 38-year-old, who recently announced a move to Indian Super League side Jamshedpur, retired from the Australian national team after the recent World Cup in Russia - with 107 caps and a record 50 goals since he made his debut in 2004.
However Cahill will get the opportunity to add to those tallies with a final farewell match at ANZ Stadium on November 20 - in what will be one of the first matches in charge for new Socceroos manager Graham Arnold.
"It was a surprise. I had a phone call from FFA with plans they were preparing a farewell game for me - I couldn't believe it," Cahill said.
"It will be the most emotional game of my life [against Lebanon]. I have flashbacks all the time. The emotion will just be being in the dressing room and a part of the group for the game in Sydney [against Lebanon].
"I'm back now [in Australia] to say thank you to the Australian public, to say thank you to the FFA, to say thank you to the media, and say thank you to (Graham Arnold) and his team.
"When someone rewards you with sort of game, it's a different perspective that I never thought would happen to me."
The Lebanon match will come three days after the green and gold take on South Korea in Brisbane and will be the team's penultimate game under new coach Arnold before defending their Asian Cup title in UAE next year.
"During my tenure as national team coach I expect to help instill and build a culture of respect for players both on and off the pitch," Arnold said.
"Even though that this is an important game in our preparation for the (AFC) Asian Cup, giving Timmy (Cahill) and the public the opportunity to say goodbye is important to us. Tim has made many sacrifices to play for his country and deserves a final bow in front of Australian fans in Australia."