@Ball Blazer Red indian is correct
The further Pakistan stays away from any war, the better it is for the country.
The reality is that the United States and Israel are extremely powerful. They have strong global influence, including close relationships with many countries even many Muslim majority nations.
People often criticise Pakistan for being too close to the USA or the West. I don’t always agree with everything either. But that criticism would only make sense if the rest of the Muslim world was openly standing against the US. The truth is, most of them are not.
So the real question is: what can Pakistan realistically do on its own?
There is no need to act like a hero or try to become the saviour of the Muslim Ummah when the other 54 Muslim countries are not prepared to stand alongside Pakistan in a conflict.
Foreign policy should be based on national interest, stability, and survival not emotions