In Islam obedience to the law of the land is a religious duty. The Qur’an commands Muslims to remain faithful to not only Allah and the Prophet Muhammad(sa), but also the authority they live under:
O ye who believe! obey Allah, and obey His Messenger and those who are in authority over you (Ch.4: V.60).
Any country or government that guarantees religious freedom to followers of different faiths (not just Islam) must be owed loyalty. The Prophet Muhammad(sa) stressed this point when he said:
‘One who obeys his authority, obeys me. One who disobeys his authority, disobeys me.’ (Muslim)
The present head of the worldwide Ahmadiyya Muslim Community, Hazrat Mirza Masroor Ahmad(aba), has also explained:
‘A true Muslim can never raise his voice in hatred against his fellow citizens, nor for that matter against the ruling authority or government of the time. It is the responsibility of a true Muslim that he should remain loyal and fully abide by the laws of the land of which he is a subject.’ (Baitul Futuh Inauguration Reception, 11 Oct 2003)
This makes clear that according to Islam Muslims must obey the law of the land as anything to the contrary would mean that they are not obeying their Prophet or their religion.