Nigeria qualified for their first Africa Cup of Nations since winning the tournament in 2013 after drawing 1-1 with South Africa in Johannesburg.
The draw guarantees the three-time African champions a place in Cameroon with a round of matches still to play.
Despite conquering Africa in 2013, the Super Eagles surprisingly failed to qualify for the 2015 and 2017 finals.
Nigeria led through an own goal before South Africa's Percy Tau produced a moment of magic to tee up Lebo Mothiba.
The draw takes the Super Eagles to 10 points in Group E, one ahead of South Africa and three more than Libya who roared back into contention when thrashing the Seychelles 8-1 in Victoria.
Libya will now qualify for the Nations Cup if they beat Bafana Bafana in their final match next March.
Nigeria, meanwhile, finish their campaign at home to the Seychelles who have conceded 22 goals in their five group games and prop up the table with one point.
The Super Eagles' previous Nations Cup triumphs came in 1980, 1994 and 2013.
Have your say
More Sports Headlines
- Manchester City win FA Cup to secure historic domestic football treble
- AFCON 2019: Why Asamoah Gyan must be sacrificed for the future
- Robben, Ribery strike in perfect farewell as Bayern seal Bundesliga title in style
- 'Bribed' referees who handled Ashgold-Kotoko clash banned temporarily
- Guardiola relaxed over UEFA probe into Manchester City
- Allegri to leave Juventus this summer
- ANALYSIS: Only these players from Ghana's 2017 AFCON team should go to Egypt. [Infographic]
- Wafu Women's Cup: Ghana fail to reach final after Nigeria defeat
- Asantehene calls for golf support
- Solskjaer will get financial backing to 'create success' at Man United
- Thomas Partey could join Inter, claims agent
- Man City referred to UEFA judicial chamber over alleged FFP breaches
- FIFA seeks a billion World Cup viewers to boost women's game
- NC Special Cup: Kotoko end winless run as Hearts qualify for semi-finals
- Black Stars technical team donates to Teshie Children's Home