[1] Bosnia and Herzegovina conceded three minutes into their World Cup debut, when Lionel Messi's free kick from the left was flicked on by Marcos Rojo and bounced off Sead Kolašinac into the net for an own goal.
In the second half, Messi played a one-two with substitute Gonzalo Higuaín and shot home from the edge of the penalty area with his left foot into the bottom-right corner.
[2] With five minutes remaining in normal time, Bosnia and Herzegovina pulled one back, when Senad Lulić's pass found substitute Vedad Ibišević to score the country's first ever World Cup goal, shooting under the goalkeeper with his left foot.
Džeko came closest to scoring the equaliser to keep his team's qualification chances alive, but his shot in second-half stoppage time was deflected onto the post by Nigeria goalkeeper Vincent Enyeama.
[20] Before the match, Nigeria were the only team yet to concede in the tournament, but their defence were breached inside three minutes when Ángel Di María's shot hit the post and Lionel Messi slammed home the rebound.
Nigeria, which would qualify for the knockout stage if they gained a point or if Iran failed to beat Bosnia and Herzegovina in the other match, equalised within a minute, when Michel Babatunde fed Ahmed Musa, and he cut inside and curled the ball into the net.
Iran, which had to win and also hoped Nigeria lost to Argentina to have any chance for qualification to the knockout stage, reduced the deficit after Reza Ghoochannejhad tapped home from close range from a Javad Nekounam cross.