This will be PM Khan's first visit to Sri Lanka after assuming office.
"Thank you for your invitation Prime Minister Mahinda Rajapaksa. Looking forward to my visit to further strengthen the friendship & cooperation between our two countries," the PM tweeted.
"This visit will further reinforce our bilateral relationship and pave way for joint ventures that mutually benefit both our nations," Mahinda Rajapaksa tweeted.
PM will undertake a two-day official visit to Sri Lanka from 23 February.
This will be PM Khan's first visit to Sri Lanka after assuming office.