Ex- African Footballer of the Year the Napoli star was instrumental in Nigeria establish a commanding lead, but the Super Eagles were compelled to hold on for a hard-fought victory.
The three-time champions weathered a dramatic comeback attempt from Tunisia to progress to the knockout stage of the Afcon tournament taking place in the host nation.
Jose Peseiro's side seemed to be cruising in their Group C clash in Fes, holding a three-goal lead with just a quarter of an hour remaining courtesy of strikes from their attacking trio.
However, Montassar Talbi reduced the deficit with a powerful header from a Manchester United midfielder set-piece, sparking hopes of a turnaround.
The tension escalated when Tunisia were awarded a late penalty after a VAR review spotted a handball by Bright Osayi-Samuel. Ali Abdi converted in the 87th minute to create a frantic conclusion.
Tunisia were inches away from a last-gasp leveler in added time, with captain Ferjani Sassi directing a chance narrowly wide before a substitute sent a bobbling volley wide of the upright.
Securing First Place
This result means that Nigeria, champions of the competition on three previous occasions, move to six points and are assured top spot in Group C with one game still to play.
For the round of 16, they will meet a third-placed side from one of Group A, B or F.
In the other match, the 2004 champions remain on three points, with Uganda and Tanzania locked on one point each after registering a 1-1 stalemate in the day's other fixture.
The final pool fixtures will see the group leaders stay in the city to take on the Cranes on Tuesday, while the Eagles of Carthage travel back to the capital to confront Tanzania.
A Nervy Finish
The Tunisian defender smashed home from the penalty spot to offer Tunisia hope of earning a draw.
The Super Eagles, finalists in the 2023 tournament, become the second team after Egypt to qualify for the knockout stage, but coach Eric Chelle and fans will certainly be feeling relieved.
What looked like set to be a straightforward final quarter morphed into a nerve-wracking conclusion.
Victor Osimhen had a goal disallowed for offside before breaking the deadlock on the stroke of half-time, expertly guiding a header into the far post from an Ademola Lookman delivery.
The lead was doubled early in the second period when the Leicester City midfielder rose highest to thump in a header from a Lookman kick.
Osimhen then set up Lookman for the third goal, only for Montassar Talbi to steer a powerful header past the Nigerian shot-stopper to initiate the fightback.
The key moment arrived when a high ball hit the forearm of the full-back, with referee Boubou Traore pointing to the spot after consulting the VAR monitor.
Despite Ali Abdi's successful penalty, the 2004 champions in the end came up just short of completing a remarkable recovery.
Their fate remains in their own hands; a point against Tanzania will be enough to secure progression, and manager Sami Trabelsi will be eager to prevent a repeat of the 2013 group-stage exit that led to his departure.