When Spain expelled its Jews in 1492 and Portugal in 1496, they went to the Muslim countries of Algeria, Egypt, Morocco, Tunisia, Turkey, and they were admitted and they remained there for 500 years. I began to wonder what idiots were ruling over these Muslim countries who allowed the Jews to enter without asking the question: what exactly were they doing in Spain and Portugal that they had to be expelled? Did the stupid rulers expect the Jews to behave differently than they did in Spanish and Portugal? The descendants of the Jews of Spain and Portugal who had found a safe haven in the Muslim countries for 500 years wound up going to Palestine in 1948 and we do not know how many of them went around raping the Palestinian woman to show gratitude to the Muslims who gave them shelter for 500 years!
What you see listed below were the useless dynasties who were ruling over these Muslim countries during that time and who allowed the Jews of Spain and Portugal to enter the Muslim countries without asking any questions:
Morocco: The Wattasids = 1472 to 1554
Algeria: The Zayyanids = 1235-1557
Tunisia: The Hafsids = 1229 to 1574.
Turkey: Sultan Bayezid II = 1481 -1512
Egypt: The Mamluks = 1250–1517