Roger Federer says Rafael Nadal “made the whole tennis world proud” during his “epic career” before the Spaniard’s retirement.