It was an especially painful loss for the Eagles, who saw quarterback Jalen Hurts depart in the first quarter with a concussion.
Philadelphia failed to clinch the NFC East division title, and fell out of a tie for the best record in the NFC, still shared by the Detroit Lions and Minnesota Vikings who both won on Sunday to improve to 13-2.
The Commanders shook off five turnovers to win, piling up 22 points in the fourth quarter.
Daniels, the second overall pick in this year’s draft, found Jamison Crowder on a nine-yard touchdown pass with six seconds left to secure what had seemed an unlikely win.
“The game’s never over until the clock hits zero,” Daniels said after a win that kept the Commanders’ playoff hopes alive while eliminating Dallas and San Francisco from contention.
“It feels awesome,” Daniels said. “Everybody can enjoy their Christmas now.”
The Eagles, who hadn’t lost since September, were without Hurts for most of the game after his head hit the turf when he was tackled by Frankie Luvu at the end of a 13-yard run.
Kenny Pickett replaced him and threw for 143 yards with a touchdown and Saquon Barkley ran for 150 yards and two touchdowns, but the Eagles dropped to 12-3.
Meanwhile NFC North rivals Detroit and Minnesota both improved to 13-2.
The Lions cruised past the Bears 34-17 in Chicago to set a franchise record with their 13th win of the season while the Vikings held off the Seattle Seahawks 27-24.
Stung by a loss to Buffalo that snapped their 11-game winning streak, the Lions jumped to a 20-point lead on the way to setting a single-season franchise record for points scored with 493 so far.