Peter L. Bergen said this quote

Every lethal terrorist attack in the United States since 9/11 has been carried out by an American citizen or a legal permanent resident, not by recent immigrants or by refugees. So tamping down immigration won't fix the real issue, which is 'homegrown' terrorism.