On 4 February 2017, Messi scored his 27th free-kick for Barcelona in a 3–0 home win over Athletic Bilbao in the league, overtaking Koeman as the club's all-time top-scorer from free-kicks. On 23 April, Messi scored twice in a 3–2 away win over Real Madrid. His game-winning goal in stoppage time was his 500th for Barcelona. His memorable celebration saw him taking off his Barcelona shirt and holding it up to incensed Real Madrid fans – with his name and number facing the crowd. On 27 May, Messi scored a goal and set up another for Paco Alcácer in the 2017 Copa del Rey Final, helping Barcelona to a 3–1 victory over Alavés, and was named Man of the Match. In total, Messi finished the 2016–17 season with 54 goals and 16 assists, while his 37 goals in La Liga saw him claim both the Pichichi and European Golden Boot Awards for the fourth time in his career.