Tbh both Arabs and Iran use religion as a tool and themselves are hardly religious minded. There is ummah when their rule is threatened or regional interests. If cicumstances allow both will treat Israel and India as brothers and actually have in recent times. Iran has worked with Great Satan (USA according to their supreme leader) in Iraq and Afghanistan. Saudi, Jordan and UAE has cooperated with Israel for Iran. Iran drums up Israeli confrontation only as a pretext to have a hold in middle east politics and influence.
Pakistan should directly help countries that need our help as a frontline anti terror country. Nigeria, Turkey, Azerbaijan, CARS, Nigeria, Morroco, Indonesia and Malaysia and leave these Racial supremacist trouble creating countries to their own fate. Develop economically and only keep transactional relationships with such nations.