The pact will introduce visa-free access from India to the Pakistani town of Kartarpur, home to a temple that marks the site where the founder of Sikhism, Guru Nanak, died.
The deal allows for a secure corridor and bridge between the two countries, leading directly to the grave of Sikhism's founder Guru Nanak, just four kilometres from the Indian border.
Modi thanks PM Imran for "understanding India's wishes and turning Kartarpur into reality."
At a time when the world is fighting a global COVID-19 coronavirus pandemic, which adversely impacts every human being on earth, terrorists have chosen to strike in Afghanistan and that exposes their depraved, evil mindset.
The gunman held many of the worshippers hostage for several hours as Afghan special forces, helped by international troops, tried to clear the building. At least one of the dead was a child.
In a tweet, Information Minister Fawad Chaudhry said: "In line with new National Security Policy, through which Pakistan declared geo-economics as the core of its national security doctrine, the government has decided to allow permanent residency scheme for foreign nationals."