Senior advisor to U.S. President Donald Trump Stephen Miller watches as U.S. Attorney General Jeff Sessions delivers remarks during the daily White House press briefing March 27, 2017 in Washington, DC.
Win McNamee/Getty Images
Senior advisor to U.S. President Donald Trump Stephen Miller watches as U.S. Attorney General Jeff Sessions delivers remarks during the daily White House press briefing March 27, 2017 in Washington, DC.
Now playing
01:43
Travel ban author writes Trump speech on Islam
President Donald Trump addresses the 73rd session of the United Nations General Assembly, at U.N. headquarters, Tuesday, Sept. 25, 2018. (AP Photo/Richard Drew)
Richard Drew/AP
President Donald Trump addresses the 73rd session of the United Nations General Assembly, at U.N. headquarters, Tuesday, Sept. 25, 2018. (AP Photo/Richard Drew)
Now playing
02:17
Trump claim to world leaders met with laughter
CNNMoney
Now playing
06:22
How Trump's tweet sparked #WhyIDidntReport
President Donald Trump points to the crowd after speaking to law enforcement officials on the street gang MS-13, Friday, July 28, 2017, in Brentwood, N.Y.
Evan Vucci/AP
President Donald Trump points to the crowd after speaking to law enforcement officials on the street gang MS-13, Friday, July 28, 2017, in Brentwood, N.Y.
Now playing
01:46
Trump's I'm-joking-but-not-really strategy
WASHINGTON, DC - DECEMBER 15:  U.S. President Donald Trump listens to a question as he speaks to members of the White House Press Corps prior to his Marine One departure from the South Lawn of the White House December 15, 2017 in Washington, DC. (Alex Wong/Getty Images)
Alex Wong/Getty Images
WASHINGTON, DC - DECEMBER 15: U.S. President Donald Trump listens to a question as he speaks to members of the White House Press Corps prior to his Marine One departure from the South Lawn of the White House December 15, 2017 in Washington, DC. (Alex Wong/Getty Images)
Now playing
01:20
Trump often says he's 'the least racist person'
CNN
Now playing
01:00
Trump on Manafort: I feel sad about that
Pool
Now playing
01:22
Trump on Cordray: He was groomed by 'Pocahontas'
Now playing
05:58
Baldwin: This face behind Trump startled me
CNN
Now playing
02:01
Trump responds to op-ed: 'Gutless'
CNN Illustration/Getty Images
Now playing
03:18
Why Woodward's book matters
CNN
Now playing
01:13
Dean: Trump acts 'frighteningly dictatorial'
WASHINGTON, DC - MAY 08:  U.S. President Donald Trump announces his decision to withdraw the United States from the 2015 Iran nuclear deal in the Diplomatic Room at the White House May 8, 2018 in Washington, DC. After two and a half years of negotiations, Iran agreed in 2015 to end its nuclear program in exchange for Western countries, including the United States, lifting decades of economic sanctions. Since then international inspectors have not found any violations of the terms by Iran.  (Photo by Chip Somodevilla/Getty Images)
Chip Somodevilla/Getty Images North America/Getty Images
WASHINGTON, DC - MAY 08: U.S. President Donald Trump announces his decision to withdraw the United States from the 2015 Iran nuclear deal in the Diplomatic Room at the White House May 8, 2018 in Washington, DC. After two and a half years of negotiations, Iran agreed in 2015 to end its nuclear program in exchange for Western countries, including the United States, lifting decades of economic sanctions. Since then international inspectors have not found any violations of the terms by Iran. (Photo by Chip Somodevilla/Getty Images)
Now playing
02:31
Woodward book reveals 'crazytown' White House
CNN Illustration/Getty Images
Now playing
03:03
Trump's latest Twitter tirade lashes at media
TOPSHOT - US President Donald Trump waits to speak during a memorial service at the Pentagon for the 9/11 terrorist attacks  September 11, 2017 in Washington, DC. / AFP PHOTO / Brendan Smialowski        (Photo credit should read BRENDAN SMIALOWSKI/AFP/Getty Images)
Brendan Smialowski/AFP/Getty Images
TOPSHOT - US President Donald Trump waits to speak during a memorial service at the Pentagon for the 9/11 terrorist attacks September 11, 2017 in Washington, DC. / AFP PHOTO / Brendan Smialowski (Photo credit should read BRENDAN SMIALOWSKI/AFP/Getty Images)
Now playing
01:57
Trump warns of violence if GOP loses midterms
Photo Illustration: Getty Images/CNN Business
Now playing
01:40
Trump: Impeach somebody who's done great job?
Fox News Channel
Now playing
01:19
Trump on Sessions: What kind of man is this?

Story highlights

Stephen Miller is Trump's senior adviser for policy and speechwriter

He used to work for then-Senator Jeff Sessions

Watch on CNN: “United Shades of America with W. Kamau Bell” visits Muslims living in small town America Sunday at 10p ET/PT.

(CNN) —  

The author of President Donald Trump’s controversial travel ban, which targeted people from six-majority Muslim countries, is the principal speechwriter for the President’s speech on Islam in Saudi Arabia on Sunday.

Stephen Miller, Trump’s senior adviser for policy and speechwriter, is the principal aide in charge of writing both the speech on Islam and Trump’s later speech on the future of the North Atlantic Treaty Organization, a White House official told CNN.

Both are topics Miller has spoken out against throughout his career on Capitol Hill and in the White House.

The official said the speech has been put together through a collaborative process inside the White House, but that Miller was the primary author.

The speech, which will be given in front of about 50 Muslim leaders, could be a flashpoint in Trump’s eight-day, five country trip. Trump has long derided Islam, proposed banning all Muslim immigration into the United States during the campaign and is expected to use the term “radical Islamic terrorism” throughout the speech in Saudi Arabia, the cradle of the 1.6 billion-member religion.

His travel ban, in the name of protecting the US against terrorism, also specifically targeted all Muslim-majority countries, a move that was derided by Muslims everywhere, including in the Middle East.

That ban was the work of Miller, a 31-year-old aide who, along with Trump’s chief strategist Steve Bannon, the former Breitbart CEO, has been a key voice in Trump’s ear on immigration.

Miller himself has a lengthy history with anti-Muslim rhetoric. During his time at Duke University, Miller wrote extensively for the school’s newspaper, including one article in which he wrote: “Islamic terrorists … have declared a death sentence on every man, woman and child living in this country.”

The time I went to summer camp with the future mini-Trump

Miller also worked as a college student for the Terrorism Awareness Project, an effort founded by the David Horowitz Freedom Center. The group is considered an anti-Muslim hate group by the Southern Poverty Law Center.

Prior to working with Trump, Miller worked as a top aide and speechwriter to Alabama Sen. Jeff Sessions, who is now Trump’s attorney general. Sessions was outspoken on terrorism during Miller’s time on his staff, mimicking Miller’s views on the faith.

Trump has called his first foreign trip “crucial,” despite the fact the trip couldn’t come at a worst time for the President: His administration is currently consumed by the naming of a special counsel by the Justice Department to look into Russia’s connections to the Trump campaign during the 2016 election.

Trump said earlier this week that he will “challenge” Muslims in Saudi Arabia to “fight hatred and extremism and embrace a better future of their faith.”

“We have to stop radical Islamic terrorism,” he added.

H.R. McMaster, Trump’s national security adviser, said Trump’s speech will be “inspiring but direct” and urge the leaders to “confront radical ideology.”

“The President hopes for a peaceful vision of Islam to dominate across the world,” McMaster said. “The speech is intended to unite the broader Muslim world against common enemies of all civilization and to demonstrate America’s commitment to our Muslim partners.”

CNN’s Daniel Burke contributed to this report.

CORRECTION: This story has been updated to properly identify a group Trump will deliver a speech on. It’s the North Atlantic Treaty Organization.