Hamas has rejected a proposal by Tehran to restore ties in return for its support in Iran’s current battle with Saudi Arabia, a source in the Palestinian terror group told pan-Arab paper Asharq al-Awsat on Friday.

According to the report, Khaled Qaddumi, Hamas’ representative in Tehran, met two weeks ago with Iranian Foreign Minister Mohammed Javed Zarif, who offered to renew Iranian financial support for the group on a regular basis and according to its needs, if Hamas were to officially declare its allegiance to Iran in the wake of Saudi Arabia’s execution of Shiite cleric Nimr al-Nimr earlier this month.

According to the sources, the proposal triggered a dispute within Hamas. The heads of the organization in the Gaza Strip supported normalization of ties with Tehran, while Qatar-based politburo chief Khaled Mashaal was reluctant to commit, fearing that Hamas would lose its support among Sunni Arab states. Ultimately, the report said, Mashaal officially rejected the offer from Iran.

“The equation is clear: as a liberation movement, we need the support of everyone,” a Hamas official in the West Bank told the newspaper. He stressed the group “will never join an alliance against the Sunni world.”

Exiled Hamas chief Khaled Mashaal, left, and Gaza's Hamas Prime Minister Ismail Haniyeh wave during a news conference upon Mashaal's arrival in the Gaza Strip on December 7. (photo credit: AP/Suhaib Salem, Pool)

Hamas political bureau chief Khaled Mashaal, left, and Gaza’s former Hamas Prime Minister Ismail Haniyeh wave during a news conference in the Gaza Strip in 2012. (photo credit: AP/Suhaib Salem, Pool)

Relations between Iran and Hamas have been shaky since the Palestinian organization came out against Syrian President Bashar Assad, a key Iranian ally, and left its headquarters in Damascus with the outbreak of the country’s civil war in 2011.

Tehran gradually halted its support for the Palestinian organization; it was also recently reported that Iran has ended its financial backing for the Palestinian Islamic Jihad, probably due to its position on the civil war in Yemen.

Flag of the Gaza-based Palestinian faction Harakat al-Sabireen right) alongside that of Lebanon based Shiite terror group Hezbollah (left). Both organizations are backed by Iran.

Flag of the Gaza-based Palestinian faction Harakat al-Sabireen right) alongside that of Lebanon based Shiite terror group Hezbollah (left). Both organizations are backed by Iran.

Hamas could well still be receiving getting money from Iran, albeit on an ad hoc basis. The organization did attempt recently to draw closer to the Islamic Republic, even claiming sponsorship of the activities of Shiite group Harakat al-Sabireen, which does enjoy Iranian support.

Harakat al-Sabireen, which translates to “movement of the patient ones,” broke away from Islamic Jihad in May 2014, and has symbols almost identical to those of Lebanon-based Hezbollah and the Iranian Revolutionary Guard Corps.

Founder Hisham Salim this week told the Palestinian news agency Ma’an that the group, like Hezbollah, is directly funded by the Iranian government, but stressed that his group was non-sectarian, non-religious and certainly not a “Shiite movement.”

Lee Gancman contributed to this report