Federer won the first set 6-4 and the second set was going with serve at 2-2 when on the opening point of the fifth game, Medvedev had Federer on the defence after back-to-back deep forehands down the line.
Federer then put up a backhand lob which Medvedev responded with a smash.
But the 20-time Grand Slam champion read the direction of the shot and hit back with a backhand crosscourt pass.
Medvedev then hit a backhand volley but Federer, on the run, whipped a forehand down the line which looked set to win him the point.
On the full stretch, Medvedev got a racket to the ball and his backhand volley dropped just inches over Federer’s net but the ball bounced back onto his side of the court with the aid of heavy backspin before Federer could get to it.
Federer then shook his head and applauded Medvedev’s shot.
Commentator Robbie Koenig said the shot was “a miracle from Medvedev”.
And Federer, who went on to win the match in three sets 6-4 4-6 6-4, said he initially couldn’t believe the shot his Russian opponent pulled off but was happy Medvedev won it because of how great it was.
“What was great about that shot is he didn’t maybe want that, but he gave himself the best chance to make the ball,” said Federer.
“When you have the right intention, right belief and right stretch, good things do happen.
“This was one of the perfect examples that we both played a great point, and at the end, a little magic happens.
“It was good fun to see it. In the beginning, you’re like, ‘I can’t believe it happened’, then you’re actually happy for the guy that he actually pulled off a great shot.”
Federer will face Spain’s Roberto Bautista Agut in the next round after he beat American Mackenzie McDonald.
And the Swiss star is expecting another tough match.
“I have a lot of respect for him,” Federer said.
“He’s just a tough guy, you know. So you have to bring it. Could be similar like today. A lot of long rallies potentially.”
Source : EXPRESS