The Spaniard will be the second of the 'Big three' of tennis to hang up his racket next to fellow legend Federer, who retired in 2022.