Kansas City Chiefs place kicker Harrison Butker (7) is lifted in the air after his game-winning field goal against the Cincinnati Bengals during the second half of the NFL AFC Championship playoff football game, Sunday, Jan. 29, 2023, in Kansas City, Mo. The Chiefs won 23-20. (AP Photo/Jeff Roberson)

KANSAS CITY, Mo. — Patrick Mahomes scrambled for a first down on his badly sprained right ankle, then was shoved late out of bounds by Joseph Ossai, giving Harrison Butker a chance to kick a 45-yard field goal with 3 seconds remaining and give the Kansas City Chiefs a 23-20 victory over the Cincinnati Bengals in the AFC title game Sunday night.

The Chiefs will face the Philadelphia Eagles in Super Bowl LVII in two weeks. The Eagles defeated the San Francisco 49ers 31-7 in the NFC title game earlier Sunday.

The Chiefs finally beat the Bengals after three straight losses, including a three-point overtime defeat in last year’s title game, and will play the Philadelphia Eagles — coach Andy Reid’s old team — in their third Super Bowl in four years.

Mahomes, who hurt his ankle against Jacksonville in the divisional round, threw for 326 yards and two touchdowns, even though he was missing three of his wide receivers to injuries by the end. Marquez Valdes-Scantling led the way with 116 yards and a touchdown, while Travis Kelce — bad back and all — had seven catches for 78 yards and a score.

Yet it was Mahomes on his balky right ankle, rather than with his strong right arm, that rescued the Chiefs.

The Chiefs got a crucial sack from Chris Jones to force a punt with 39 seconds left, and shaky return man Skyy Moore broke free for 29 yards on the return. On third-and-4 at the Bengals 47, Mahomes eluded pressure and scrambled toward the Bengals sideline, barely picking up the first down before Ossai gave him a shove from behind.