He assisted Arturo Vidal as Barca moved within a point of leaders Real Madrid.
Meanwhile, Cristiano Ronaldo scored two penalties in 2-2 draw against Atalanta in gameweek 32 of the Serie A.
Here are further details.
Messi went on to amass his 20th assist this campaign in La Liga.
With this tally, he equaled the record set by Xavi in the 2008-09 season.
Messi can create the record now as there are two league matches left.
The Argentine recorded his 184th career assist in La Liga.
Since 2006-07, Messi has provided 10-plus assists every season apart from 2016/17 (9).
As per Opta, Messi is the second player to score 20-plus goals (22) and provide 20 assists in a single season in the top five European Leagues in the 21st century after Thierry Henry (24 goals and 20 assists) in 2002-03 for Arsenal.
Messi has 24 assists across competitions this season.This is five short of his all-time record (29) in the 2014-15 season.
Ronaldo's goals came in the 55th and 90th minute for the Serie A leaders.
Ronaldo took his league tally to 28 goals in 28 matches this season.
He needs two more goals to surpass Ciro Immobile (29) and become the highest scorer this season in the Serie A.
The veteran forward scored in his seventh successive match for Juventus in the Serie A.
He has now converted 125 career penalties for club and country.
Ronaldo raced to 32 goals in all competitions this season. He has amassed 60 goals in total for Juventus in 83 games.
He now has 633 career club goals in 846 games.
Love Sports news?
Subscribe to stay updated.