A senior Iranian cleric warned Washington on Wednesday that if it attacked Iran, the United States and allied Israel would be targeted, as a war of words escalated after the reimposition of the U.S. sanctions on Iran.

Ahmad Khatami also told worshippers attending Eid prayers in Tehran that President Donald Trump's offer of talks with Iranian leaders was unacceptable, as the U.S. leader wanted Tehran to concede on its missile program and regional influence.

"Americans say you should accept what we say in the talks. So this is not negotiation, but dictatorship. The Islamic Republic and the Iranian nation would stand up against dictatorship," Khatami was quoted as saying by Mizan news agency.