DETROIT -- Aaron Rodgers took the shotgun snap on an untimed down with no time left, shuffled to his left, slipped a sack, rolled right and heaved a pass that seemed as high as it was long.
Richard Rodgers, drifting toward the end zone while teammates and opponents crowded behind him, leaped and made the catch on the 61-yard play, giving the Green Bay Packers a stunning 27-23 victory over the Detroit Lions on Thursday night.
"I knew I was going to have to buy some time to allow them to get into the end zone," Aaron Rodgers said. "I knew once I got outside the right that I was going to be able to set up and throw."
The Packers got one more shot to win after Detroit defensive end Devin Taylor was called for grabbing Aaron Rodgers' face mask on a tackle on what would have been the last play. The 61-yard touchdown is the longest game-winning, game-ending Hail Mary in NFL history, according to the Elias Sports Bureau. The 61 air yards also are the most air yards on a touchdown in the past 10 seasons.
The Packers (8-4) had lost four of five.
"Unfortunately, this counts as one win," Packers coach Mike McCarthy said. "It feels like more."
The Lions (4-8) had won three straight and blew a chance to sweep the season series with Green Bay for the first time since 1991.
"Tough one to lose," Lions coach Jim Caldwell said. "Those are the ones that eat at you. The guys are upset because they gave so much, but we needed one more play. It is never over in this league."
"Not an easy pill to swallow," Stafford said.
Aaron Rodgers scored on a 17-yard run with 3:04 left, pulling the Packers within two points.
Stafford connected with TJ Jones to convert a third-and-12 from the Detroit 18 after Green Bay called its final timeout with 2:54 to go. The Lions needed one more first down to seal the victory, but Green Bay forced them to punt and got the ball back on the 21 with 23 seconds left.
Following two incompletions, including one on which Detroit appeared to get away with pass interference, Aaron Rodgers threw a pass to James Jones, who lateraled it to Richard Rodgers, who tossed it back to Aaron Rodgers with no one behind him to lateral it again to keep the play alive.
But Taylor grabbed Aaron Rodgers' face mask, giving the Packers another play.
"I wasn't able to get away from those guys, but luckily, my face mask was grabbed," Aaron Rodgers said.
Richard Rodgers' father, also named Richard Rodgers, had to like what he saw of his son's winning catch on the all-University of California connection. The elder Rodgers is credited with calling "The Play" and threw two laterals during it to finish off the Cal-Stanford game in 1982, which ended with the Cardinal band on the field and the Bears winning 25-20.
Western Michigan's band performed at halftime of the Packers-Lions game, but it wasn't on the field for the heart-pounding finish at Ford Field.
Aaron Rodgers scrambled long enough to give his receivers time to sprint to the end zone and got to the outside. He planted his foot at about the Green Bay 36 and got it into the end zone, where Richard Rodgers found a way to get to it in front of a slew of players from both teams, leaping for the catch.
The players had nearly 13.5 seconds between the snap of the ball and the time of the catch to get into position. The pass was in the air for 5.42 seconds on its way to the end zone.
"I've never had a completed Hail Mary before," Aaron Rodgers said.
He has now, much to Caldwell's chagrin.
"We weren't in a position to get our hands on it," Caldwell lamented.
Aaron Rodgers finished 24-of-36 for 289 yards with two TDs and an interception.
"It's the greatest feeling," he said. "We're blessed to be able to play this game, and it reminds you at times how special this game is. You live for days like this, to be able to have something miraculous happen."
Stafford was 23-of-35 for 220 yards and two scores. He also lost a fumble.
Detroit went ahead 17-0 after its first three drives and capped the opening possession of the third quarter with a field goal to go ahead 20-0.
It wasn't a big enough cushion.
"There's going to be no masking this. We know that we struggled," Aaron Rodgers said. "We're inconsistent on offense. We can't be that type of football team if we want to finish the season where we want to finish the season. We're 8-4, there's four games left, and we know it's about giving yourself an opportunity, getting into the dance.
"It's a great game we play. This one obviously ranks up there as one of the greatest joys on the field that we've had, together as a team and personally."
The Packers scored their first points with 5:44 left in the third when James Starks fumbled and Randall Cobb recovered it in the end zone. ... Aaron Rodgers perfectly lofted a 17-yard pass over linebacker Josh Bynes to Davante Adams for his first TD reception this season to pull the Packers within six points late in the third. ... Lost in the loss will be Johnson's 17-yard TD catch in the first quarter in which he leaped to catch it with two hands, squeezed the ball with only his right hand as he planted his right foot and dragged his left on the side of the end zone.
The Associated Press and ESPN's Jason Wilde and Stats & Information contributed to this report.
NFL Week 12 injury update: News on Lamar Jackson, Cordarrelle Patterson, Aaron Jones and more
Heading into Week 12, our NFL reporters have the latest updates to key players across the gridiron.
Why Stephen A. is not concerned about Rodgers' toe injury
Stephen A. Smith says he is not worried about Aaron Rodgers' toe injury and fully expects the Packers quarterback to play vs. the Rams.
Sean McVay expects bigger roles for Odell Beckham Jr., Von Miller when Rams play Packers on Sunday
Sean McVay expects to get "a lot more" from Odell Beckham Jr. and Von Miller in Sunday's game against the Packers.
Dallas Cowboys consider sitting Ezekiel Elliott to heal injured knee, source says
The Cowboys might hold running back Ezekiel Elliott out of Thursday's game against the Saints to give him some time off to heal from his knee injury, a source told ESPN.
Saquon Barkley, Kadarius Toney, Sterling Shepard among injured New York Giants
Sterling Shepard is out, Kadarius Toney is doubtful and running back Saquon Barkley is questionable for Sunday's game against the Eagles.
Minnesota Vikings' Everson Griffen goes on non-football illness list
The Vikings have placed defensive end Everson Griffen on the reserve/non-football illness list two days after he refused to come out of his home and was transported to a mental health facility.