Salamalaikum,I am citizen of Nigeria and recently aquired the citizenship of the united states..Before I was granted citizenship I was asked to take the following oath which undoubtedly I dont believe in because we owe allegiance to our religion "I hereby declare, on oath, that I absolutely and entirely renounce and abjure all allegiance and fidelity to any foreign prince, potentate, state, or sovereignty, of whom or which I have heretofore been a subject or citizen; that I will support and defend the Constitution and laws of the United States of America against all enemies, foreign and domestic; that I will bear true faith and allegiance to the same; that I will bear arms on behalf of the United States when required by the law; that I will perform noncombatant service in the Armed Forces of the United States when required by the law; that I will perform work of national importance under civilian direction when required by the law; and that I take this obligation freely, without any mental reservation or purpose of evasion; so help me God." After I said the words I got scared thinking I nullified my islam because the following hadith and because of a fatwa in your site that says that whoever utters words of disbelief without believing or having the intention of doing it nullifies his islam Al-Nasaai narrated from ‘Abd-Allah ibn Buraydah that his father said: the Messenger of Allah (blessings and peace of Allah be upon him) said: “Whoever says ‘I have nothing to do with Islam’ and is lying, he is as he said, and if he is telling the truth, he will never come back to Islam soundly.” Did I nullify my religion by saying these words even though my allegiance lies with islam?
All perfect praise be to Allaah, the Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His Slave and Messenger.
The pledge of allegiance is one of the greatest blights associated with endeavoring to get the citizenship of a non-Muslim country. It consists of various vicious matters, including what is related to Kufr (disbelief) itself, like allegiance to the laws of those countries.
We would like to first make note that one of the most dangerous matters occurring in this time is that some Muslims are rushing and striving to obtain the citizenship of a non-Muslim country without dire necessity. This results in many evils against the Muslim in his religion and his worldly affairs. Muslims must beware of venturing into this for an insignificant reason; as the end could be that one sells his religion for worldly gain, thus losing out in both this life and the Hereafter; and that is manifest loss.
For more benefit, kindly refer to Fataawa 82552 and 87140. We have explained in them that in case of dire necessity, a Muslim who gives the pledge of allegiance to one of these governments may conceal his intention and use Tawriyah (i.e. saying something which has more than one meaning and intending a meaning different from what the listener is likely to understand), like to intend his allegiance only to the Muslims in those lands and to benefit that country by guiding its people to enter Islam.
However, the Muslim does not become a disbeliever by merely repeating these words which contain allegiance to the people of Kufr, as long as his heart remains at rest with faith. Al-Qurtubi commented in his Tafseer (interpretation of the Quran) on the story of Haatib (ibn Abi Balta‘ah) and what was revealed regarding it at the beginning of Soorah Al-Mumtahanah that Allaah The Exalted said (what means): {O you who have believed, do not take My enemies and your enemies as allies, extending to them affection while they have disbelieved in what came to you of the truth.}[Quran 60:1] saying: "The saying of Allaah The Exalted: {extending to them affection} means to do so outwardly, since the heart of Haatib was without fault. The evidence is that the Prophet, sallallaahu ‘alayhi wa sallam, said to them (his Companions): “As for your companion (Haatib), he has been truthful.” This is a statement of the soundness of his heart and the purity of his belief … The one who is mostly acquainted with the Muslims' locations of privacy, and then he informs their enemies about them, and tells them their news is not necessarily thereby a disbeliever if he did so merely for some worldly purpose. This is exactly what Haatib did when he intended to seek protection [from the people of Makkah for his family there], and he never intended apostasy from his religion." [End quote]
Allaah Knows best.
You can search for fatwa through many choices