Moses our Teacher granted the Torah and mitzvot only to the people of Israel... and to whoever from among the nations of the world who wishes to convert to Judaism... But Moses also instructed, by word of G-d, to prevail upon all inhabitants of the world to accept the [seven] mitzvot commanded to the children of Noah...
Maimonides Mishneh Torah, Laws of Kings 8:10