Egypt beat Cameroon to set up Africa Cup of Nations final against Senegal.
Goalkeeper Gabaski was the hero, saving two penalties as Egypt edged past hosts Cameroon in a penalty shootout after a goalless draw to set up an Africa Cup of Nations final against Senegal.
Sunday's final sets up a tantalising meeting between Liverpool forwards Mohamed Salah and Sadio Mane at the same venue - the Olembe Stadium in Cameroon's capital Yaounde (kick-off 19:00 GMT).
Hosts Cameroon had shown more impetus in 90 minutes, twice hitting the post through Michael Ngadeu-Ngadjui's looping header and Samuel Gouet's thunderous long-range strike, which flicked the woodwork.
Egypt's star man Salah was kept quiet for much of the game, curling a strike from outside the area narrowly over and almost profiting from a loose back pass, but he could not convert.
But he did not have to step up in the shootout as Cameroon missed three of their efforts, with Gabaski saving from Harold Moukoudi and James Lea Siliki, while Clinton N'Jie side-footed wide.
An ill-tempered ending to normal time had seen Egypt coach Carlos Queiroz sent off for remonstrating with the referee and his assistant Wael Gomaa cautioned too.
It means they will both be missing from the touchline for the final as Gomaa was also yellow carded in the quarter-final against Morocco.
Meanwhile, Cameroon will face Burkina Faso in the third/fourth-place play-off, which has been brought forward a day to Saturday (19:00 GMT).
This was a meeting between the two most successful teams in the competition's history with record seven-time winners Egypt up against Cameroon.
The hosts had triumphed on five occasions with the last of those coming in 2017 when they defeated Thursday's opponents 2-1 in the final, but Egypt gained revenge on this occasion.
As well as pitting club team-mates Salah and Mane up against each other, the final will be the first of three meetings between Egypt and Senegal over the next two months as they also contest a two-legged play-off for a place at the World Cup in Qatar.
There was a feisty build-up to this meeting as Cameroon legend, and now the football federation's president, Samuel Eto'o referred to the game in a speech as a "war".
But Egypt boss Queiroz felt it was a "bad message" particularly after eight people had died and 38 more injured in a crush at the Olembe Stadium.
All eyes were on Salah, who curled narrowly over after eight minutes, but Cameroon were the dominant side as Ngadeu-Ngadjui's looping header hit the post and the defender miscued from six yards following the resulting corner.
Salah had a sniff in the second half when he latched onto a poor backpass to take him through on goal, but was foiled by goalkeeper Andre Onana flying out of his area.
Karl Toko Ekambi's glancing header was then straight at Gabaski, while Gouet's powerful drive was close as the game went into extra time.
Middlesbrough midfielder Lea Siliki's free-kick from out wide almost sailed in, landing on the roof of the net, but the contest went to penalties.
Gabaski, who stepped up after Egypt's first-choice keeper Mohamed El Shenawy was injured in their last-16 win over Ivory Coast, provided the heroics to ensure his side won their sixth shootout in a row to progress.