Former African Footballer of the Year the Napoli star helped his team build a commanding lead, before they were forced to hold on for a narrow victory.
The three-time champions weathered a dramatic comeback attempt from Tunisia to progress to the knockout stage of the 2025 Africa Cup of Nations taking place in Morocco.
The Super Eagles appeared to be in complete control in their Group C encounter in the Moroccan city, enjoying a 3-0 cushion with only a quarter of an hour left courtesy of goals from their attacking trio.
Yet, Montassar Talbi reduced the deficit with a powerful header from a Manchester United midfielder free-kick, igniting hopes of a recovery.
The drama intensified when Tunisia were awarded a spot-kick after a VAR review identified a handling offense by the Nigerian defender. The left-back converted in the 87th minute to create a nail-biting finale.
Tunisia were inches away from a last-gasp equalizer in added time, with captain Ferjani Sassi directing a chance just past the post before a substitute sent a bobbling volley past the upright.
Securing First Place
The victory means that the Super Eagles, champions of the competition on 3 previous occasions, advance to six group points and are assured top spot in Group C with one game left to play.
For the round of 16, they will face a third-placed side from either the other preliminary groups.
Meanwhile, Tunisia 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 concluding group fixtures will see Nigeria stay in the city to take on Uganda on the next matchday, while Tunisia return to Rabat to face Tanzania.
A Nervy Finish
The Tunisian defender drilled the ball from the penalty spot to offer his team hope of snatching a draw.
The Super Eagles, runners-up in the previous edition, become the next team after Egypt to reach the knockout stage, but coach Eric Chelle and supporters will undoubtedly be feeling relieved.
What looked like set to be a comfortable final quarter morphed into a nerve-wracking affair.
The prolific striker had a goal disallowed for an infringement before breaking the deadlock on the stroke of the interval, expertly guiding a header into the bottom corner from an Atalanta winger cross.
The advantage was extended soon in the second period when the Leicester City midfielder climbed above everyone to thump in a powerful nod from a set-piece kick.
Osimhen then turned provider his teammate for the third goal, before the defender to direct a powerful header past the Nigerian shot-stopper to initiate the fightback.
The pivotal moment came when a high ball struck the arm of the full-back, with referee Boubou Traore awarding a penalty after reviewing the VAR monitor.
Although the defender's confident conversion, Tunisia in the end fell short of pulling off a stirring comeback.
Tunisia's destiny remains in their control; a draw against Tanzania will be enough to secure progression, and their coach will be keen to avoid a recurrence of the 2013 group-stage exit that led to his departure.