Roger Federer
Roger Federer of Switzerland reacts during a news conference after his men's singles semi-final match against Rafael Nadal of Spain at the Australian Open 2014 tennis tournament in Melbourne January 24, 2014. REUTERS/David Gray REUTERS

Roger Federer and Novak Djokovic, who are both participants in the 2014 Miami Masters, took a break from tennis and watched a game of basketball on Friday. The two great athletes were both in attendance during the game between Miami Heat and Memphis Grizzlies, when the Heat won with the final score of 91 to 86.

Federer and Djokovic came to watch the game separately, but the Swiss athlete who currently ranks fifth in the world had a better seat. According to Tennis World USA, Federer was invited by the Heat team. Having been invited personally to watch the game, Federer was given the privilege of sitting courtside, and he was delighted enough to share the experience by posting a photo on Twitter.

Very cool to sit court side during a Miami Heat game, great athletes, great sport, thanks for the entertainment! pic.twitter.com/dEO2ammPWZ

— Roger Federer (@rogerfederer) March 22, 2014

After the game, Federer was invited to the locker room where he got to spend some time with the Heat players. Dwyane Wade even posted a picture of him with Federer on Instagram with the caption that reads, "Hanging with the great @roger Federer after the game 2nite in our locker room, we have something in common, we're both 32 and they love to call us old, #Champions @Enuffsaid #StillGettingitdone."

Djokovic, on the other hand, came with some of his friends. He was in the stands.

Great to start in Miami with W! No match tomorrow as Mayer forfeits. Used some free time me to watch Basketball #heat pic.twitter.com/oIktTFzjrg

— Novak Djokovic (@DjokerNole) March 23, 2014

2014 Miami Masters

Both Federer and Djokovic have cruised their ways easily into the fourth round of the 2014 Miami Masters. Federer secured his spot in the quarterfinals after beating Dutch Thiemo de Bakker. He is set to clash with French athlete Richard Gasquet next.

"I'm feeling really good with my game," Federer told NDTV Sports. "My confidence is high and I'm moving well, I'm excited about how I've been playing," he added. Federer and Gasquet had met in November 2013, and according to the Swiss athlete, he will have to study his homework and find out how Gasquet has been playing now.

Djokovic will play against Tommy Robredo in the fourth round of the said tournament. The Serbian athlete leads their head-to-head 5-1.