On Thursday, Modi had congratulated Pakistan on its Independence Day, which comes a day before India's Independence Day.
"Prime Minister Sharif greets Prime Minister Modi on India's Independence Day, wishing prosperity to the people of India," the Pakistan High Commission said.
The exchange of greetings came days after a war of words broke out following Modi's comments that Pakistan was involved in a "proxy war" against India.
Pakistan had termed Modi's comments as "baseless rhetoric" which was strongly criticised by External Affairs Ministry.
In a strong rebuttal, the External Affairs Ministry said terrorism was a "core concern" in its bilateral ties with Pakistan and its "tool kit" is not restricted in any manner to combat it effectively.
Foreign secretaries of India and Pakistan are scheduled to meet in Islamabad on August 25.
PM to investors: Sell anywhere but 'make in India'
Pak anti-govt protesters march on; shots fired at Imran
Advani and co. make India proud on I-Day!
Cricket Buzz: Harmanpreet reprimanded for offence
After cutting 6,000 jobs globally, Cisco bets big on India