He was addressing worshippers in Tehran after Friday prayers. The Palestinian prime minister arrived in Tehran Thursday for a four-day official visit and meetings with Iran's Supreme leader Ayatollah Ali Khamenei and President Mahmoud Ahmadinejad.
Iran - a key supporter of Hamas - has provided $120 million in aid to the Palestinian government to make up for the shortfall when western nations cut off assistance.
The West suspended aid after Hamas took power in March, demanding that the militant group recognize Israel and accept interim Israeli-Palestinian accords.
The United States, the European Union and Israel consider Hamas a terrorist organization. Hamas's charter calls for the destruction of Israel.
Some information for this report was provided by AP and Reuters.