America’s first hijab wearing Olympian, Ibtihaj Muhammad, has revealed she was detained at US customs - and suggested it happened because she is a Muslim. The incident happened prior to President Trump's travel ban coming into force.

The fencer, 31, shot to fame during the Rio Olympics for wearing a hijab and winning a bronze medal for Team USA.

"I was held at customs for two hours just a few weeks ago. I don't know why. I can't tell you why it happened to me, but I know that I'm Muslim. I have an Arabic name," she told Popsugar.

London protests against US President Donald Trump's travel ban

“And even though I represent Team USA and I have that Olympic hardware, it doesn't change how you look and how people perceive you.

“Unfortunately, I know that people talk about this having a lot to do with these seven countries in particular, but I think the net is cast a little bit wider than we know. And I'm included in that as a Muslim woman who wears a hijab.”

Ms Muhammad, a New Jersey native, has previously expressed her opposition to Mr Trump’s policies.

Last week, she posted a picture to Instagram depicting the Statue of Liberty hugging a Muslim child. It was captioned: “Our diversity is what makes us strong #NoBanNoWall.”

In addition, Ms Muhammad said during the Olympics she didn't feel safe in America because of anti Muslim rhetoric in the country.

This has become more vigorous since Mr Trump took office, with new travel restrictions widely branded a 'Muslim ban'.

Signed on 27 January, the order banned nearly all travellers from seven Muslim-majority countries and has prompted widespread protests.

It applies to people from Syria, Sudan, Iraq, Iran, Somalia, Yemen and Libya. The order also suspended the country's refugee global programme before being temporarily halted after eight days by federal judge James Robart.

Rio 2016 Olympics - in pictures Show all 74 1 /74 Rio 2016 Olympics - in pictures Rio 2016 Olympics - in pictures Day Eight Andy Murray celebrates his victory over Kai Nishikori to reach the men's Olympic final. Getty Rio 2016 Olympics - in pictures Day Eight Jessica Ennis-Hill continues her bid for gold in heptathlon. Getty Rio 2016 Olympics - in pictures Day Eight Usain Bolt breezed through his 100m heat. Getty Rio 2016 Olympics - in pictures Day Eight Team GB took silver in the women's eight. Getty Rio 2016 Olympics - in pictures Day Eight The men's eight gold took Great Britain top of the rowing medal table. Getty Rio 2016 Olympics - in pictures Day Seven Britain's Jazz Carlin secured her second silver of the Games in the women's 800m freestyle, as American Katie Ledecky surged to her fourth Rio gold. Getty Rio 2016 Olympics - in pictures Day Seven Singapore's Joseph Schooling won his nation's first gold medal with victory in the 100m butterfly as Michael Phelps was denied a 23rd Olympic title. Getty Rio 2016 Olympics - in pictures Day Seven Sir Bradley Wiggins becomes Britain's greatest Olympian ever as Team GB win gold in the men's Team Pursuit at the Velodrome. AFP Rio 2016 Olympics - in pictures Day Seven Bryony Page on her way to a silver in gymnastics trampoline. EPA Rio 2016 Olympics - in pictures Day Seven Heather Stanning and Helen Glover win gold in the women's rowing pairs. Getty Rio 2016 Olympics - in pictures Day Seven Alex Gregory, Mohamed Sbihi, George Nash and Constantine Louloudis celebrate their success in the men’s coxless four. Getty Rio 2016 Olympics - in pictures Day Seven Defending champions Great Britain won silver in the Olympic team dressage, as world champions Germany claimed gold. The British quartet - Spencer Wilton, Fiona Bigwood, Carl Hester and Charlotte Dujardin - were beaten into second by 3.334 points. Getty Rio 2016 Olympics - in pictures Day Six American Simone Manuel became the first black female swimmer to win an Olympic title as she shared the women's 100m freestyle gold with Canada's Penny Oleksiak, 16, after a dead heat. Getty Images Rio 2016 Olympics - in pictures Day Six Swimming legend Michael Phelps demolished the field in the 200m individual medley to claim his 22nd Olympic gold. Getty Rio 2016 Olympics - in pictures Day Six Simone Biles takes gold in the Women’s individual all-around artistic gymnastics. Getty Rio 2016 Olympics - in pictures Day Six Fiji's Vatemo Ravouvou breaks through to score during the Men's Rugby Sevens Gold medal final match against Great Britain. Team GB settled for silver as Fiji romped to gold. David Rogers/Getty Images Rio 2016 Olympics - in pictures Day Six Callum Skinner, Jason Kenny and Philip Hindes of Great Britain celebrate after winning gold in the men's team sprint. AFP Rio 2016 Olympics - in pictures Day Six Double act David Florence and Richard Hounslow won their second joint Olympic silver in the canoeing slalom. Getty Rio 2016 Olympics - in pictures Day Six Victoria Thornley and Katherine Grainger show off their silver medals after the women's double sculls final Getty Rio 2016 Olympics - in pictures Day Five Max Whitlock poses with his bronze medal Getty Rio 2016 Olympics - in pictures Day Five Joe Clarke reacts to winning Britain's second gold of thee Games Reuters Rio 2016 Olympics - in pictures Day Five Jack Laugher and Chris Mears celebrate with their gold medals Getty Rio 2016 Olympics - in pictures Day Four David Florence suffered heartbreak in the canoe single C1 men's semi-final Getty Rio 2016 Olympics - in pictures Day Four Andy Murray celebrates his straight sets victory against Juan Monaco Getty Rio 2016 Olympics - in pictures Day Three Lilly King shows off her gold medal as Yulia Efimova parades her silver AFP Rio 2016 Olympics - in pictures Day Three Russia's Yulia Efimova (left) looks on as the US's Lilly King (right) celebrates winning the Women's 100m Breaststroke Final earlier this morning Getty Rio 2016 Olympics - in pictures Day Three Lilly King celebrates after beating her Russian rival Yulia Efimova Getty Rio 2016 Olympics - in pictures Day Three Michael Phelps takes on Chad Le Clos in the men's 200m butterfly final Getty Rio 2016 Olympics - in pictures Day Three Michael Phelps says it 'breaks my heart' to see drug cheats at the Olympics Getty Rio 2016 Olympics - in pictures Day Three James Guy missed out on bronze on Monday night Getty Rio 2016 Olympics - in pictures Day Three Louis Smith reacts to his pommel stumble which may have cost Team GB a medal Getty Rio 2016 Olympics - in pictures Day Three Dan Goodfellow (right) and Tom Daley celebrate with their bronze medals Getty Rio 2016 Olympics - in pictures Day Three Tom Daley and Dan Goodfellow dive into the pool in delight after winning bronze Getty Rio 2016 Olympics - in pictures Day Three Tom Daley (left) and Daniel Goodfellow performing in the men's synchronised 10m platform final PA Rio 2016 Olympics - in pictures Day Three Canada celebrate their victory against Team GB on day three Getty Rio 2016 Olympics - in pictures Day Three Heather Watson leaves the court yesterday after losing her second round match against Elina Svitolina of Ukraine Reuters Rio 2016 Olympics - in pictures Day Two Carlin proudly shows off her silver medal Getty Rio 2016 Olympics - in pictures Day Two Carlin reacts after learning that she has won the silver medal Getty Rio 2016 Olympics - in pictures Day Two Peaty shows off his gold medal with pride Getty Rio 2016 Olympics - in pictures Day Two Adam Peaty celebrates his gold Getty Rio 2016 Olympics - in pictures Day Two Andy Murray and Jamie Murray were knocked out of the men's doubles by Thomaz Bellucci and Andre Sa AFP Rio 2016 Olympics - in pictures Day Two Venus and Serena Williams suffered their first ever Olympic defeat playing together Getty Rio 2016 Olympics - in pictures Day Two Richard Kruse battling the Russian Timur Safin GETTY Rio 2016 Olympics - in pictures Day Two Lizzie Armitstead finished fifth in the women's road race PA Rio 2016 Olympics - in pictures Day Two Anna van der Breggen celebrates winning gold in the women's road race Reuters Rio 2016 Olympics - in pictures Day Two Annemiek van Vleuten suffered a horrific accident in the women's road race Reuters Rio 2016 Olympics - in pictures Day Two The women's road race passes along the beach in Rio de Janeiro Getty Rio 2016 Olympics - in pictures Day Two Andy Murray beat Viktor Troicki 6-3, 6-2 to win his men's singles first round match Getty Rio 2016 Olympics - in pictures Day Two Serena Williams is through to the second round of the women's singles after defeating Daria Gavrilova Getty Rio 2016 Olympics - in pictures Day Two Gold medal winner, Hoang Xuan Vinh of Vietnam, center, silver medal winner, Felipe Almeida Wu of Brazil, left, and bronze medalist Pang Wei of China, at the victory ceremony for the men's 10-meter air pistol event AP Rio 2016 Olympics - in pictures Day Two Rowing was cancelled on day two over fears of sinking and capsizing due to strong winds Getty Rio 2016 Olympics - in pictures Day One Yusra Mardini has won her heat of the Women's 100m Butterfly but she will not be able to go forward to the semi-final Getty Images Rio 2016 Olympics - in pictures Day One Britain's James Guy chops through the water Getty Rio 2016 Olympics - in pictures Day One Kantinka Hosszu of Hungary set a new world record in winning gold in the Women's 100m Individual Medley final Getty Rio 2016 Olympics - in pictures Day One Samir Ait Said receiving medical help after suffering a badly broken leg Getty Rio 2016 Olympics - in pictures Day One Yusra Mardini leads the race in the 100m Butterfly heat at Olympic Aquatics Stadium in Rio EPA Rio 2016 Olympics - in pictures Day One Natasha Hunt scored two tries to inspire Britain to victory against Brazil Getty Rio 2016 Olympics - in pictures Day One Joanne Watmore scored Britain's first try in Olympic rugby sevens history Getty Rio 2016 Olympics - in pictures Day One Adam Peaty celebrates after breaking the 100m breaststroke world record Getty Rio 2016 Olympics - in pictures Day One Adam Peaty broke his own world record in the 100m breaststroke heats and is favourite to win gold on Sunday Getty Rio 2016 Olympics - in pictures Day One Adam Peaty broke his own world record in the 100m breaststroke heats Getty Rio 2016 Olympics - in pictures Day One Chris Froome speaks with a bruised Geraint Thomas after the men's road race PA Rio 2016 Olympics - in pictures Day One Greg van Avermaet celebrates winning gold in the men's road race Getty Rio 2016 Olympics - in pictures Day One Rafal Majka was caught with just two kilometres to go Getty Rio 2016 Olympics - in pictures Day One Greg van Avermaet won a sprint finish to clinch Olympic road race gold EPA Rio 2016 Olympics - in pictures Day One A bullet is marked by Brazilian police in the equestrian media centre Getty Rio 2016 Olympics - in pictures Day One The peloton make their way along the beach during the road race Getty Rio 2016 Olympics - in pictures Day One Chris Froome leads away the men's road race along with the rest of Team GB Getty Rio 2016 Olympics - in pictures Day One The field make their way along the opening stages of the road race Eric Gaillard/Reuters Rio 2016 Olympics - in pictures Day One Mahe Drysdale of New Zealand had no trouble in qualifying for the men's single skulls quarter-finals Getty Rio 2016 Olympics - in pictures Day One Rowers warm up under the watchful gaze of the Christ the Redeemer statue Getty Rio 2016 Olympics - in pictures Opening Ceremony A huge fireworks display signals the end of the Rio 2016 Opening Ceremony. Felipe Dana/AP Rio 2016 Olympics - in pictures Opening Ceremony Andy Murray leads out Team GB at the Rio Olympics opening ceremony Getty Rio 2016 Olympics - in pictures Opening Ceremony Gisele Bundchen turns the stage into a catwalk during the opening ceremony AP

The US appeals court is now hearing the government’s case in favour of reinstating the ban.