The new contract will tie the 40-year-old fan favourite to the Spanish club at least until 2026.