CHICAGO (AP) -- Matthew Stafford threw for 299 yards and two touchdowns, Matt Prater kicked a 52-yard field goal with 1:35 remaining and the Detroit Lions held on to beat the Chicago Bears 27-24 on Sunday.
Detroit (6-4) took the lead after Tarik Cohen had tied it for Chicago (3-7) with a 15-yard touchdown run.
Prater booted the winner after Stafford led a 42-yard drive to the 34. The Lions escaped with their third straight win when the Bears' Connor Barth was wide right on a 46-yarder in the closing seconds.
Stafford completed 21 of 31 passes. Marvin Jones Jr. had four receptions for 85 yards and a TD.
DJ Hayden ran back a fumbled snap for a touchdown to give Detroit seven return TDs this season, tying a team record. And the Lions beat the Bears for the eighth time in nine games.
Chicago dropped its third straight even though Jordan Howard ran for 125 yards and a touchdown. Mitchell Trubisky faded after a strong start, throwing for 179 yards and a TD. His 19-yard scramble on fourth-and-13 in the final minute put the ball on the Detroit 43.
He then hit Dontrelle Inman with a 15-yard pass, giving Barth a chance to force overtime. But the Bears once again came up short after a rough loss to Green Bay that reignited the heat on coach John Fox.
Bears linebacker Leonard Floyd was taken from the field on a cart early in the fourth quarter with a knee injury he suffered trying to defend a run.
Several teammates kneeled nearby as the medical staff tended to him on the field. Cornerback Kyle Fuller was seen bleeding from his left wrist after the play, though he returned to the game.
Moments after Floyd went down, Prater kicked a 27-yard field goal to make it 24-17 with about 10 minutes left.
Stafford threw for 195 yards and two touchdowns in the first half to help the Lions grab a 21-17 lead.
Detroit trailed 10-0 in the first quarter and 17-7 in the second before charging ahead in the closing minutes of the half.
Stafford's 28-yard touchdown to Jones with 5:17 remaining made it a three-point game. And his 2-yarder to a wide-open Ameer Abdullah gave the Lions a 21-17 lead with 20 seconds left.
Lions: DE Ezekiel Ansah (back) missed his second straight game. ... RB Dwayne Washington (hip) was inactive.
Bears: WR Josh Bellamy got shaken up blocking on a pass play in the third quarter and entered the concussion protocol. ... RG Kyle Long (finger) was back in the lineup after being limited to one special-teams play last week. ... LB Danny Trevathan (calf) and TE Dion Sims (illness) were inactive for the second straight week.
Lions: Host the Minnesota Vikings on Thursday.
Bears: Visit the Philadelphia Eagles on Nov. 26.