Alvaro Morata scored the game-winning goal for Spain against Portugal in overtime, as head coach Luis Enrique predicted his team would score.
With a win over Portugal and a spot in the Nations League Finals for the following year, head coach Luis Enrique "had the feeling that the goal was going to come" for Spain.
Spain needed to win in Braga if they wanted to finish first in Group A2 ahead of Portugal, but the home team had the better opportunities in the opening period.
But Luis Enrique's substitutions helped Spain win the match, and they scored a thrilling 88th-minute winner when Alvaro Morata headed in Nico Williams' downward header.
Luis Enrique claims he knew his team were going to score, telling reporters: "It is a wonderful sport in which victory is the best antidote for any depression or state of sadness.
"Portugal is a top team. In the first half, I insisted a lot, perhaps too much, on having the ball, and we did. It is clear that we prefer to make the passes in the opposing half.
"The first half is necessary to show that the ball is ours; in the second half, I had the feeling that the goal was going to come.
"We repeat reaching the final four, and it is a great joy."
The important victory will no doubt stir hopes of Spain repeating their 2010 heroics, when Vicente del Bosque led the nation to their first and only World Cup crown.
The 2022 tournament in Qatar is fast approaching, and Luis Enrique faces tough decisions in picking his final squad.
"It is wonderful to train these players," he told reporters.
"The list is not 26; there are 40 who can come to the World Cup. It is a pleasure to train players of such quality.
"The pity is that players are going to stay out [of the final squad]. It changes continuously. It will be difficult for me."