EGYPT made it through to the last 16 at the Africa Cup of Nations after drawing 2-2 with Cape Verde following a dramatic finale to Group B in Abidjan.
Egypt had looked set to finish third behind the Blue Sharks and Ghana before stoppage-time goals in both games.
Pharaohs forward Mostafa Mohamed netted what looked to be a 93rd-minute winner.
However, Cape Verde levelled six minutes later but the Pharaohs secured second spot as Ghana threw away a 2-0 lead in added time against Mozambique.
Mozambique scored twice in second-half stoppage time to almost certainly send Ghana crashing out of the 2023 Africa Cup of Nations at the group stage.
The Black Stars looked to be cruising into the last 16 thanks to two Jordan Ayew penalties, one in each half.
But Geny Catamo pulled one back from the spot on 91 minutes before Reinildo Mandava’s header broke Ghana hearts.
Mozambique finish bottom of Group B, while Ghana need a miracle to progress as one of four best third-placed sides.