Saudi Arabia pulled off a last-gasp 2-1 win over Egypt as the two sides departed from Russian Federation on Monday, with the Saudis notching their first World Cup victory since 1994 and adding to the misery of Egypt's prolific striker Mohamed Salah.
El Hadary overtook Faryd Mondragon as the oldest person to play at the World Cup.
No sooner had the veteran goalkeeper finished celebrating and he was facing another spot-kick, this time given after the lightest of shirt tugs by Ali Gabr on Al Muwallad.
Egypt ended their World Cup campaign without a single point in three games, as they struggled to match the quality of their group rivals.
Follow the live updates from the two Group A clashes, where Russian Federation takes on Uruguay and Egypt plays Saudi Arabia.
Egypt goalkeeper Essam El Hadary, who is 45, took the field for his team's final group match to set the record.
Egypt took the lead in the 22nd minute as Mohamed Salah scored a delightful goal, his second of the tournament.
But after a VAR-induced review that took nearly five minutes to complete, Colombian referee Wilmar Roldan chose to stick with his original decision.
Priyanka Chopra and Nick Jonas Are in Mumbai
Bollywood actress Priyanka Chopra who has been busy with several Hollywood projects has been dating young musician Nick Jonas . It was a big night as Priyanka Chopra's mother, Madhu Chopra, was also present with the duo.
Salem Aldawsari scored with nearly the last kick of the match for the Saudis, shooting from a tight angle inside the Egypt penalty area and poking the ball past El Hadary.
Saudi Arabia fielded Yasser Al-Mosailem as the goalkeeper, meaning that the kingdom's three keepers will each have played one game in Russian Federation.
Saudi Arabia came out the more aggressive of the two sides in the second half and almost took the lead nine minutes in.
On current form, Salah is one of the best players in the world, and the World Cup will be a poorer place without the brilliant Egyptian in the knockout stages.
36% of Saudi Arabia's goals at the World Cup have been scored from the penalty spot (4 of 11).
Egypt suffered losses in its first two matches with Mohamed El-Shenawy in net. The Pharaohs are taking on Saudi Arabia in a clash that means nothing in terms of progression but has a heavy dose of pride on the line.
Always available for the ball, the 28-year-old dictated the game for Pizzi's side with his penetrative passing and accurate crossing.
Faraj did the business deep into first-half injury time.