Actor and comedian Will Ferrell was rushed to a hospital Thursday night after he was reportedly involved in a serious two-car crash in Southern California.

The crash happened on Interstate 5 when another car struck the vehicle Ferrell was riding in, the actor's talent agency said.

Ferrell and a colleague, Andrew Steele, were both taken to an Orange County hospital and have since been released without injuries, the United Talent Agency said in a statement Friday.

Ferrell's longtime driver, Mark Thompson, and another colleague, Carolina Barlow, remain hospitalized in stable condition, the talent agency added.

Celebrity news site TMZ initially reported that the crash had caused Ferrell's SUV to "spin and flip over." A representative for Ferrell said Friday his vehicle had flipped on its side.

Video from the scene Thursday night showed a black SUV with its windows shattered and Ferrell conscious and talking on a phone as paramedics wheeled him into an ambulance on a stretcher.

"Will is staying close by as his friends are being treated, and has expressed his deep gratitude to the first responders who were immediately at the scene and to the hospital team that took such great care of them," the United Talent Agency said in a statement Friday. "He's also grateful for all the well wishes he and his friends are receiving."

The condition of the other driver involved in the crash was unknown, and it remained unclear what caused the car to collide with Ferrell's vehicle. The California Highway Patrol did not respond to requests Friday for more information.

Ferrell, a former "Saturday Night Live" cast member who has parlayed his exaggerated goofball style of humor into a successful movie career, is perhaps best known for his roles in comedies such as "Anchorman," "Elf," "Talladega Nights" and "Step Brothers."

Ferrell had been in San Diego on Thursday for a "Funny or Die" event, along with comedian Billy Eichner, where he appeared as "Anchorman" character Ron Burgundy and encouraged people to register to vote ahead of the midterm elections.