Tendulkar will retire from international cricket after playing a world record 200th Test against West Indies at his home ground Wankhede Stadium in Mumbai.
Federer, who praised Tendulkar for his glorious career, wished the Master Blaster a "great life" after cricket.
"It is always sad when the curtains come down on a great career. I'm really happy for him that he can go out on his terms, at the time he has chosen, at a venue of his choice. That's really great. I hope his farewell game is everything he wants it to be. He deserves it," Federer, winner of a record 17 Grand Slams, told "The Times of India" on Wednesday.
"I wish him a great life after cricket. Hope it is as exciting and memorable as his cricket," he added.
Federer said he has seen Tendulkar play. "I've seen him play, not as much as I would've liked, but I've watched him on television several times," he said.
On his meeting wit the Mumbai batsman at Wimbledon, Federer recalled: "I'm glad I got to meet him, we had tea in the terrace at Wimbledon. I remember the meeting clearly. I enjoy meeting great athletes. It is an experience for me. I like picking their brains, seeing how it works. I enjoyed my time with Sachin."
In 2011, Federer and Tendulkar met up at Wimbledon. On that day, Tendulkar had tweeted: "Spent an hour with Roger Federer chatting on the balcony of Wimbledon Royal box. What a humble guy! And by the way he knows a lot about cricket!!"
Tendulkar is playing his 199th Test today at Kolkata's Eden Gardens.