Modi enquired about Sharif's health and wished him a complete and speedy recovery.
Sharif underwent open heart surgery in London recently and is expected to return home soon.
Sharif thanked Modi for his "kind sentiments", a Foreign Office statement said.
