Iran will not target its neighbors unless attacks are launched from them during the war with Israel and the United States, President Masoud Pezeshkian said Saturday.

"I must apologize on my own behalf and on behalf of Iran to the neighboring countries that were attacked by Iran," said Pezeshkian in a speech broadcast on state TV.

"The interim leadership council agreed yesterday that no more attacks will be made on neighboring countries and no missiles will be fired unless an attack on Iran originates from those countries. I think we should solve this through diplomacy," he said.

The leadership council has been leading Iran since Israel and the United States launched strikes against Iran on Feb. 28, killing the Islamic republic's supreme leader Ayatollah Ali Khamenei and triggering a regional conflict.

Iran has since responded with missile and drone strikes on Israel and U.S. interests in regional countries, mainly in the Gulf.