Kelechi Iheanacho scored a 95th-minute winner as Nigeria survived a scare to beat Sierra Leone 3-2 and secure qualification for the 2023 Africa Cup of Nations.
Victor Osimhen, Serie A's top scorer with 26 goals as Napoli won the title last season, put Nigeria 2-0 up inside 32 minutes with a deft lob and a close-range finish.
Sierra Leone, playing in Liberia because they do not have an international stadium, levelled through Mustapha Bundu and Augustus Kargbo.
But Leicester City striker Iheanacho poked home the winner to secure qualification and send Guinea-Bissau through as Group A runners-up.