Former African Footballer of the Year the Napoli star was instrumental in his team build a 3-0 advantage, but the Super Eagles were forced to hold on for a hard-fought win.
Nigeria weathered a stunning comeback attempt from Tunisia to advance to the knockout stage of the Afcon tournament taking place in the host nation.
Jose Peseiro's side appeared to be cruising in their pool encounter in Fes, enjoying a 3-0 lead with just 17 minutes left courtesy of strikes from their attacking trio.
Yet, a Tunisian defender reduced the deficit with a close-range finish from a Hannibal Mejbri set-piece, igniting hopes of a turnaround.
The tension intensified when the North Africans were given a spot-kick after a VAR review identified a handball by Bright Osayi-Samuel. The left-back calmly slotted home in the dying stages to create a frantic conclusion.
Tunisia came agonizingly close from a last-gasp leveler in stoppage time, with their skipper heading a opportunity narrowly wide before Ismael Gharbi guided a bobbling volley wide of the upright.
Securing Top Spot
This result ensures that Nigeria, champions of the competition on 3 previous occasions, advance to 6 group points and are guaranteed top spot in their pool with one game left to play.
In the next round, they will face a third-placed team from either Group A, B or F.
In the other match, Tunisia stay on 3 points, with the East African teams locked on one point after playing out a 1-1 stalemate in the day's other fixture.
The final pool fixtures will see Nigeria remain in the city to take on the Cranes on the next matchday, while Tunisia return to Rabat to confront Tanzania.
A Nervy Finish
The Tunisian defender smashed home from the penalty spot to offer his team hope of snatching a draw.
The Super Eagles, runners-up in the 2023 tournament, become the next nation after the Pharaohs to qualify for the knockout stage, but their manager and supporters will certainly be breathing a sigh of relief.
What seemed set to be a comfortable last period transformed into a tense conclusion.
The prolific striker had a effort disallowed for an infringement before opening the scoring on the stroke of half-time, precisely placing a glancing effort into the far post from an Ademola Lookman delivery.
The advantage was extended early in the second period when the Leicester City midfielder climbed above everyone to thump in a header from a set-piece corner.
Osimhen then turned provider Lookman for the seemingly decisive goal, only for the defender to steer a header past the Nigerian shot-stopper to initiate the comeback.
The pivotal incident arrived when a high ball hit the arm of the full-back, with referee Boubou Traore pointing to the spot after consulting the VAR monitor.
Although the defender's successful penalty, the 2004 champions ultimately fell short of completing a remarkable comeback.
Tunisia's destiny is still in their control; a draw against Tunisia will be sufficient to see them through, and manager Sami Trabelsi will be keen to avoid a recurrence of the past group-stage exit that resulted in his previous resignation.