The comments come amid growing concern over possible Israeli retaliation for last week's Iranian missile attack, as Iran's Foreign Minister Abbas Araghchi headed to Saudi Arabia and other Persian Gulf states for talks on Wednesday.
They followed discussions between Iran and Arab capitals last week on the sidelines of an Asia conference in Qatar, when Persian Gulf states sought to reassure Iran of their neutrality in any conflict between Tehran and Israel.
"Iran made it clear that any action by a Persian Gulf country against Tehran, whether through the use of airspace or military bases, will be regarded by Tehran as an action taken by the entire group, and Tehran will respond accordingly," the senior Iranian official told Reuters.
"The message emphasized the need for regional unity against Israel and the importance of securing stability," he said.
"It also made clear that any assistance to Israel, such as allowing the use of a regional country’s airspace for actions against Iran, is unacceptable."
The role of Persian Gulf Arab states will become more significant if an Israeli attack leads to US military involvement, as Bahrain, Kuwait, Qatar, Saudi Arabia and the United Arab Emirates all host US military facilities or troops.