The third place play-off at the Africa Cup of Nations proved the final game of John Obi Mikel's international career.
Nigeria claimed third place in the Africa Cup of Nations thanks to some calamitous defending from opponents Tunisia in Cairo.
Tunisia and Nigeria will contest the Africa Cup of Nations third-place play-off, with Gernot Rohr pleased with the Super Eagles' campaign.
Match-winner Riyad Mahrez revelled in Algeria's progress to the AFCON decider following a dramatic semi-final.
Senegal will play Algeria in Friday's Africa Cup of Nations final after Riyad Mahrez scored a free-kick in the 95th minute.
Having not reached an AFCON final since winning as hosts in 1990, coach Djamel Belmadi is desperate for Algeria to "write history".
Nigeria face Algeria in the Africa Cup of Nations semi-final on Sunday and the Super Eagles players stand to win huge goal bonuses.
South Africa were moments away from extra-time when a goalkeeping error from Ronwen Williams gifted Nigeria a late winner in Cairo.
Beating hosts Egypt in the last round means South Africa are favourites to win the Africa Cup of Nations, says Nigeria coach Gernot Rohr.
Alex Iwobi added to Odion Ighalo's brace as Nigeria beat holders Cameroon 3-2 in Saturday's thrilling Africa Cup of Nations last-16 tie.