DAYTONA BEACH, Fla. — Ryan Newman flipped across the finish line, his Ford planted upside down and engulfed in flames, a grim reminder of a sport steeped in danger that has stretched nearly two decades without a fatality.

At the finish line, Denny Hamlin made history with a second straight Daytona 500 victory in an overtime photo finish over Ryan Blaney, a celebration that quickly became muted as drivers awaited an update on Newman's condition.

“I think we take for granted sometimes how safe the cars are,” Hamlin said. “But number one, we are praying for Ryan.”

Roughly two hours after the crash, NASCAR read a statement from Roush Fenway Racing that said Newman is in “serious condition, but doctors have indicated his injuries are not life threatening.”

During the long wait for an update on Newman's condition, President Donald Trump took to Twitter to express his concern. Trump a day earlier attended the race as the grand marshal, gave the command for drivers to start their engines and made a ceremonial pace lap around Daytona International Speedway before rain washed out the race.

“Praying for Ryan Newman, a great and brave @NASCAR driver! #PrayingForRyan,” Trump tweeted. Newman was one of several NASCAR drivers who attended a 2016 rally for Trump in Georgia when he was a candidate.

NASCAR scrapped the traditional victory lane party for Hamlin's third Daytona 500 victory, rocked by Newman's accident 19 years after Dale Earnhardt was killed on the last lap of the 2001 Daytona 500. Earnhardt was the last driver killed in a NASCAR Cup Series race.

Newman had surged into the lead on the final lap when Blaney’s bumper caught the back of his Ford and sent Newman hard right into the wall. His car flipped, rolled, was hit on the driver’s side by another car, and finally skidded across the finish line in flames.

It took several minutes for his car to be rolled back onto its wheels. The 2008 Daytona 500 winner was placed in a waiting ambulance and taken to a hospital, and the damage to his Mustang was extensive. It appeared the entire roll cage designed to protect his head had caved.

Drivers were stricken with concern, including a rattled Corey LaJoie, the driver who hit Newman's car as it was flipping.

“Dang I hope Newman is ok,” he posted on Twitter. “That is worst case scenerio and I had nowhere to go but (into) smoke.”

Hamlin is the first driver since Sterling Marlin in 1995 to win consecutive Daytona 500s, but his celebration in victory lane was subdued.

Hamlin said he was unaware of Newman's situation when he initially began his celebration. It wasn't until Fox Sports told him it would not interview him on the frontstretch after his burnouts that Hamlin learned Newman's incident was bad.

“It's a weird balance of excitement and happiness for yourself, but someone's health and their family is bigger than any win in any sport," he said. "We are just hoping for the best.”

Team owner Joe Gibbs apologized after the race for the winning team celebration.

“We didn't know until victory lane,” Gibbs said. “I know that for a lot of us, participating in sports and being in things where there are some risks, in a way, that's what they get excited about. Racing, we know what can happen, we just dream it doesn't happen. We are all just praying now for the outcome on this.”

Runner-up Blaney said the way the final lap shook out, with Newman surging ahead of Hamlin, that Blaney got a push from Hamlin that locked him in behind Newman in a move of brand alliance for Ford.

“We pushed Newman there to the lead and then we got a push from the 11 ... I was committed to just pushing him to the win and having a Ford win it and got the bumpers hooked up wrong,” he said. “It looked bad.”

Hamlin had eight Ford drivers lined up behind him as the leader on the second overtime shootout without a single fellow Toyota driver in the vicinity to help him. It allowed Newman to get past him for the lead, but the bumping in the pack led to Newman's hard turn into the wall, followed by multiple rolls and a long skid across the finish line.

Hamlin’s win last year was a 1-2-3 sweep for Joe Gibbs Racing and kicked off a yearlong company celebration in which Gibbs drivers won a record 19 races and the Cup championship. Now his third Daytona 500 win puts him alongside six Hall of Fame drivers as winners of three or more Daytona 500s. He tied Dale Jarrett — who gave JGR its first Daytona 500 win in 1993 — Jeff Gordon and Bobby Allison. Hamlin trails Cale Yarborough’s four wins and the record seven by Richard Petty.

This victory came after just the second rain postponement in 62 years, a visit from Trump, a pair of red flag stoppages and two overtimes. The 0.014 margin of victory was the second closest in race history, and Hamlin’s win over Martin Truex Jr. in 2016 was the closest finish in race history.

That margin of victory was 0.01 seconds. The win in “The Great American Race” is the third for Toyota, all won by Hamlin. Gibbs has four Daytona 500 victories as an owner.

“I just feel like I'm a student to the game. I never stop learning and trying to figure out where I need to put myself at the right time,” Hamlin said. “It doesn't always work. We've defied odds here in the last eight years or so in the Daytona 500, but just trust my instincts, and so far they've been good for me.”

___

More AP auto racing: https://apnews.com/apf-AutoRacing and https://twitter.com/AP_Sports