You're either lying, or just brainwashed.
It had nothing to do with muslims, but terror threat. If Trump didn't like muslims, why aren't top four countries with the highest muslim pop on the list?
Executive Order 13769, "Protecting the Nation from Foreign Terrorist Entry into the United States", politically labeled as a 'Muslim Ban' (2017).
List of countries banned:
Iraq, Syria, Iran, Libya, Somalia, Sudan, and Yemen
Added additional six countries in 2020:
Myanmar, Eritrea, Kyrgyzstan, Nigeria, Sudan, and Tanzania
FOR REFERENCE:
Countries with the highest population of muslims:
Indonesia 229,000,000
Pakistan 200,400,000
India 195,000,000
Bangladesh 153,700,000
Nigeria 99,000,000
Egypt 87,500,000
Iran 82,500,000
Turkey 79,850,000
Algeria 41,240,913
Sudan 39,585,777
Iraq 38,465,864
Morocco 37,930,989
Ethiopia 35,600,000
Afghanistan 34,836,014
Saudi Arabia 31,878,000
China 28,127,500
Yemen 27,784,498
Uzbekistan 26,550,000
Niger 21,101,926
Russia 20,000,000