The Nation of Islam is a 20th-century American movement that, in its original teaching, promoted racial doctrines and elevated its founder and leaders in ways that conflict with Islam's foundations. It contradicts core Islamic creed on several points: pure tawhid (worship of Allah alone, who resembles nothing), the finality of Muhammad ﷺ as the last prophet, and the Qurʾanic principle that no race is superior to another except through piety. For these reasons it is regarded as outside mainstream Islam, even though many of its adherents have since embraced orthodox Sunni Islam. The measure of a person's standing before Allah is taqwa and correct belief, not lineage or colour.
Q&A · Sects & Comparative Belief
What is the Nation of Islam, and is it the same as mainstream Islam?
Evidence — the daleel
On deen2u
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.