Former world heavyweight boxing champion Deontay Wilder was arrested Tuesday on suspicion of carrying a concealed weapon in a Rolls-Royce, police said.

According to the Los Angeles Police Department, Wilder was arrested around 1:15 a.m. near the intersection of Cahuenga and Sunset Boulevards in Hollywood. The 37-year-old man was released a few hours later on $35,000 bail.

Wilder was pulled over due to window tint on his vehicle and an obstructed license plate, the Los Angeles Times reported, citing sources.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Heavyweight boxer Deontay Wilder listens to a question from a reporter before a media workout at UFC APEX on September 22, 2022 in Las Vegas, Nevada. Wilder is scheduled to fight Robert Helenius at the Barclays Center in Brooklyn, New York on October 15. (Steve Marcus/Getty Images)

The agents who were in the place reported the smell of marijuana, which motivated the search of the vehicle. During the search, authorities said they discovered a 9mm handgun in the luxury vehicle.

Wilder took to Twitter Tuesday afternoon and appeared to respond to the arrest.

«I prefer to be safe than sorry. The end,» he wrote.

Wilder has recently been linked to a possible boxing match against England’s Anthony Joshua.

The boxing champion’s name was also brought up in talks about a potential matchup against UFC heavyweight fighter Francis Ngannou.

Deontay Wilder talks to Malik Scott

Deontay Wilder (L) speaks with his head coach Malik Scott during a press conference at the MGM Grand Garden Arena on October 6, 2021 in Las Vegas, Nevada. Wilder will challenge WBC heavyweight champion Tyson Fury for his title on October 9 at the T-Mobile Arena in Las Vegas. (Ethan Miller/Getty Images)

Wilder, an Alabama native, won a bronze medal at the 2008 Olympics in Beijing. Wilder rose to fame during the him vs. Tyson Fury trilogy, which ran from 2018 to 2021.

Shadow Boxes by Deontay Wilder

Heavyweight boxer Deontay Wilder shadows during a media workout at UFC APEX on September 22, 2022 in Las Vegas, Nevada. Wilder is scheduled to fight Robert Helenius at the Barclays Center in Brooklyn, New York on October 15. (Steve Marcus/Getty Images)

Six months ago, Wilder won by knockout against Robert Helenius. In October 2021, Wilder suffered a devastating loss in the highly anticipated heavyweight fight against Tyson Fury.

CLICK HERE TO GET THE FOX NEWS APP

It is unclear when Wilder will participate in another fight. He currently has a record of 43-2-1.