Simple patriotic sentiments, so long as they do not contravene the higher conviction of man is permissible in Islam, like the affection one feels towards one's father, son and family. But as already shown, nationalism does not stop at simple sentiments. It is a socio-political creed and an actual way of life which aims at a full control of man's individual and social conduct. Islam, too, being a school having its own independent, spiritual, practical, political and social system and comprising a particular set of beliefs, it naturally comes into conflict with the school of nationalism.
Unlike other religions such as Christianity, Buddhism etc, Islam is not confined to religious rites and metaphysical convictions. Had Islam been only a religion of devotions, it might have agreed with nationalism. But Islam is a religion with asocial and philosophical worldview, and provides for economic and political principles. Nationalism, too, has its own social and political principles based however on different beliefs and criteria. Therefore, conflict between Islam and nationalism is inevitable. The Islamic ideology is not compatible with any other ideology on the question of sovereignty over the private and social life of Muslims. A Muslim cannot at the same time be a Muslim and a polytheist, or a Muslim and communist. In Islam, there is no room for one to be a loyal and genuine nationalist. It is a question of identity, and one negates the other.
Nationalism is incompatible with Islam, both schools having two opposite ideologies. These two assume two totally opposite poles in their spirit, essence, direction and goal.
As we shall explain later, the Quran has explicitly rejected the basis of nationalism, and states that language, colour and race are no criteria for unity and privilege. The only criteria are belief and virtue. A common ideology is the basis of the unity of the Islamic ummah, not race, country, language or even culture. The goal of nationalism is to create national units, whereas the goal of Islam is universal unity. To nationalism what matters the most is loyalty and attachment to the homeland, whereas to Islam, it is God and religion. Nationalism gives authenticity to geographical boundaries and racial distinctions, whereas Islam negates them. Nationalism inclines to limitation and race, but Islam assumes a universal outlook.
Nationalism attaches value only to the historical traditions, culture, civilization, ideas and historical figures of its own nation, but Islam's vision goes beyond the frontier, race, tribe and nation. Moses, Jesus, Muhammad and Ali are considered as belonging to all mankind. Islam wishes all nations to regard the Quran as their Book, and the Ka'aba as their Qibla, and true leaders of Islam as their leaders.
It is very hard for nationalism to accept this view. According to its limited vision, it considers the entry of Islam as a transgression or as something dangerous. It associates the nation to Cyrus and Darius, not to Muhammad and Ali. It intends to revive its ancient past which Islam calls paganism. Islam curses the Pharaoh, but Egyptian nationalism makes him a national hero to be worshipped.
rest here:
Islam and nationalism as two opposite poles
www.al-islam.org