In the last Group B match of the World Cup on June 25 Beijing time, Bosnia and Herzegovina beat Qatar 3-1, claiming their first win and accumulating 4 points, with their advancement still undecided. The 40-year-old Bosnian legend Džeko was in the starting lineup for this match, which also represented his 150th cap for the national team, making him the leader in the team's appearance chart. Slightly regrettably, Džeko again came close to finding the net but failed.

In the 34th minute, Džeko's shot resulted in an own goal by Abunada, extending Bosnia's lead to 2-0. Five minutes later, a long pass from the Bosnian midfield found Džeko, who advanced into the box and took a low, one-on-one shot that struck the post.
With that, Džeko set a new record. He became the oldest player (at 40 years and 99 days) to hit the woodwork in a World Cup since records began in 1966.

In the 64th minute, Džeko was substituted. Perhaps dissatisfied with his performance, he angrily threw his water bottle upon returning to the bench. To add to his embarrassment, the 21-year-old newcomer Mahmić, who replaced him, scored the decisive goal for Bosnia just 12 minutes later.

With 4 points from two matches, Bosnia's hopes of advancing are fairly optimistic. They have a strong chance of qualifying for the round of 32 as one of the eight best third-placed teams from the group stage. Džeko's final World Cup dance may still have a chance to continue.