An Israeli attack on Iranian territory could radically change dynamics and result in there being nothing left of the "Zionist regime", Iran's President Ebrahim Raisi was quoted as saying on Tuesday by the official IRNA news agency.
Raisi began a three-day visit to Pakistan on Monday and has vowed to boost trade between the neighbouring nations to $10 billion a year.
The two Muslim neighbours are seeking to mend ties after unprecedented tit-for-tat military strikes this year.
On Friday, explosions were heard over the Iranian city of Isfahan in what sources said was an Israeli attack but Tehran played down the incident and said it had no plans for retaliation.
Iran launched a barrage of missiles and drones at Israel on April 13 in what it said was retaliation for Israel's suspected deadly strike on its embassy compound in Damascus on April 1, but almost all were shot down.
"The Islamic Republic of Iran will honourably continue to support the Palestinian resistance," Raisi added in the speech in Lahore.