Spain will return to the stadium where they lifted the World Cup in 2010 when they face South Africa in a friendly on November 19, the Spanish Football Federation (RFEF) confirmed on Thursday.
The match will take place at the Soccer City stadium in Johannesburg.
"The RFEF wants in this way to thank the magnificent treatment on behalf of the sporting authorities and South African fans who received the Spanish team during the 2010 World Cup, in which the Spanish national team was proclaimed world champions for the first time," said a statement on the RFEF website.
The match will serve as preparation for Spain boss Vicente del Bosque ahead of the World Cup next year.
Spain sealed their place in Brazil with wins over Belarus and Georgia earlier this month and will be one of the eight seeded sides for the draw on December 6.