Manchester United will face Espanyol at Old Trafford on August 2 for Ole Gunnar Solskjaer's testimonial.
The former Norway international retired in August last year due to injury problems and is now on the club's coaching staff.
"It will be a very emotional day for me, to play one last time at Old Trafford in front of our amazing fans.
"I am going to savour every moment and I hope the fans and Manchester United can also share in my special day."
United boss Sir Alex Ferguson hailed the fans' cult hero, saying: "Ole is a loyal servant of Manchester United and I can not think of a more fitting tribute than the club to honour Ole in this way.
"It also gives the fans the opportunity to show their admiration and appreciation for such a well loved player. It will be a fantastic day for everyone."
Chief executive David Gill added: "Ole is one of Manchester United's true professionals.
"We look forward to hosting the first pre-season game at Old Trafford in honour of Ole's illustrious career."