Swaraj in her speech asked Pakistani leaders to introspect as to why India is recognised as a global IT superpower while the neighbour is infamous as the "pre-eminent export factory for terror".
In a series of tweets, Modi said, "A strong message was given by Sushma Swaraj ji on the dangers of terrorism and why we have to unite and fight this menace."
The prime minister said Swaraj was insightful in identifying global challenges and strongly reiterated India's commitment to create a better planet.
During her speech, Swaraj also slammed Pakistan for creating terror groups like LeT, JeM, Hizbul Mujahideen and the Haqqani Network.
In her address to the 72nd UN General Assembly session, Swaraj spoke on issues like terrorism, climate change, maritime and cyber security, UN Security Council reforms, poverty and unemployment.