"I thank the wonderful people of Iran for the warmth," Modi said on the Twitter handle of the Prime Minister's Office.
I thank the wonderful people of Iran for the warmth. My Iran visit was fruitful & the outcomes will positively impact our nations: PM— PMO India (@PMOIndia) May 23, 2016
"My Iran visit was fruitful and the outcomes will positively impact our nations," he said.
He also stated that during his visit he held productive discussions with Iran's top leadership.
"We are committed to seeing our ties grow even further," the prime minister said.
Ahead of his departure, in his last engagement of the day, Modi called on Iran's Supreme Leader Ayatollah Sayyid Ali Hosseini Khamenei here.
Earlier on Monday, Modi and Iranian President Hassan Rouhani held delegation-level talks following which 12 bilateral agreements were signed.
Later in the day, India, Iran and Afghanistan signed a trilateral agreement for development of the Chabahar port for a transport and transit corridor.
Modi also attended the inauguration of a two-day conference titled "India-Iran Two Great Civilisations: Retrospect-Prospects" held as part of the "Cultural Festival of India in Iran" being organised by the Indian Council for Cultural Relations (ICCR) in collaboration with the Indian embassy in Tehran, Bonyad-e-Sadi, and Farhangistan-e-Zaban-o-Adab-e-Farsi.
On Sunday evening, soon after his arrival here, Modi offered prayers at a gurudwara and addressed members of the Indian community.