President Donald Trump's "Muslim ban" is causing fear and chaos among immigrants everywhere — even at Google.

As immigrants, visa holders and refugees tried frantically to make it into the United States after Trump signed an executive order banning entry to the U.S. from seven majority Muslim countries on Friday, Google moved to protect its own staff.

Google CEO Sundar Pichai told staffers that more than 100 employees were affected by the ban and ordered all affected employees who were abroad to return stateside immediately, Bloomberg reported.

"It’s painful to see the personal cost of this executive order on our colleagues," Pichai wrote in a memo to Google staff obtained by Bloomberg. "We’ve always made our view on immigration issues known publicly and will continue to do so."

Trump's order prohibits entry into the United States for 90 days for people from Syria, Iraq, Iran, Sudan, Somalia, Yemen and Libya. Refugees who have been approved to enter the U.S., valid visa holders and longtime permanent residents with green-cards have all been detained and in some cases denied entry in the hours since the order was signed.

Sudanese ctzn flew in last night, handcuffed, questioned at NY. Landed at 11. Allowed in at 4am. Had GC for 22 yrs. PhD student at Stanford. — Mana Yegani (@Law_Mana) January 28, 2017

To be clear, Muslim travelers with valid visas are now being detained on arrival in the US pic.twitter.com/qyPHTBHJFn — Jim Sciutto (@jimsciutto) January 28, 2017

"We’re concerned about the impact of this order and any proposals that could impose restrictions on Googlers and their families, or that could create barriers to bringing great talent to the U.S.," a Google spokesperson said in an emailed statement to Mashable. "We'll continue to make our views on these issues known to leaders in Washington and elsewhere."

At Microsoft, the company is providing legal assistance to employees affected by the order. The company said at least 76 employees were affected.

"As an immigrant and as a CEO, I’ve both experienced and seen the positive impact that immigration has on our company, for the country, and for the world. We will continue to advocate on this important topic," CEO Satya Nadella wrote in a blog post published late Saturday afternoon.

The blog post included an internal memo sent to Microsoft employees that promised to provide legal assistance and said employees could ask questions about the ongoing issue at a question-and-answer session on Monday.

One of Microsoft's best-known executives, Steven Sinofsky, who left the company several years ago, posted a comment (see below) regarding the new policies and how they may impact Microsoft via his Facebook account.

Sharing a FB post. pic.twitter.com/BP8dR72SGl — Steven Sinofsky ॐ (@stevesi) January 28, 2017

Amazon declined to comment on the travel ban to BuzzFeed's Charlie Warzel, he said on Twitter, and did not immediately respond to a request for comment from Mashable.

Unsurprising: Amazon declined to comment on the refugee ban. — Charlie Warzel (@cwarzel) January 28, 2017

Facebook's Mark Zuckerberg also expressed concern over Trump's immigration proposals yesterday, invoking his family history and that of his wife, Priscilla Chan.

"My great grandparents came from Germany, Austria and Poland. Priscilla's parents were refugees from China and Vietnam. The United States is a nation of immigrants, and we should be proud of that," the Facebook chief executive wrote in a Facebook post. "Like many of you, I'm concerned about the impact of the recent executive orders signed by President Trump."

The American Civil Liberties Union and other challengers have already filed suit over the executive order.