Spain maintained their flawless start to Euro 2020 qualifying as two penalties helped them to a 3-0 win over Sweden in Madrid.
"It's a great result in a hard match against a tough opponent", Ramos said.
Spain's coach Luis Enrique was not present at the match for personal reasons, but after the match members of the team expressed pride that they had been able to win one for him.
The victory put Spain at the top of Group F with 12 points, although despite the loss Sweden are in the second spot, tied with Romania at seven points after the latter's 4-0 drubbing of Malta on the road. The victories that he's featured in have seen Ramos enjoy extraordinary trophy success with Spain, with his haul featuring a World Cup and two European Championships.
The hosts continued to wear the dogged Swedes down and they got their breakthrough when visiting defender Sebastian Larsson's outstretched arm blocked the ball and Ramos calmly deceived keeper Robin Olsen to convert from the spot.
Fourth-placed Norway have five points following a 2-0 win away to the Faroe Islands who are bottom with no points.
The captain was honored for the record before the match.
Monday marked Ramos' 165th appearance with the national team - two fewer than another Casillas record.
Ramos passed up the opportunity to score again and offered the ball to Morata, who also made no mistake from the spot, although Real Sociedad forward Oyarzabal got the biggest cheer of the evening for his impressive strike.
"It was a great attitude by Ramos to let me take the penalty", Morata said.
Oyarzabal closed the scoring with a shot from inside the area in the 87th for his first worldwide goal.
After winning all three of their previous qualifying matches, Spain struggled to break down Sweden in the first half despite having the majority of possession - 78% to 22.