The Catalans had hoped for the encounter to take place last summer, but because of a clash with Euro 2016 the event was postponed as so many players had professional duties to undertake in France.
However, with the summer footballing calendar clear, the event will take place at Camp Nou with a 19:00 kick off, while a return fixture will be played at Old Trafford on September 2.
The proceeds of the Spain leg will go to the FC Barcelona Foundation, which helps primarily children take part in social, cultural and sporting activities.
This encounter will be the second that the Barcelona Legends side have played. On April 1, they made their debut against a team of ex-Mexico stars in Queretaro. They were managed by Jose Mari Bakero and their XI contained luminaries such as Ronald de Boer, Edmilson, Vitor Baia and Hristo Stoichkov.
Barca hope that the Legends team can “honour the many footballers that have worn the club jersey over the years” and “globalise the Barca name and values through former players”.
The club also indicated that they hope to announce more fixtures soon.