Messi damaged the muscle during Barcelona's victory over Real Betis in La Liga last week, and is expected to be out for six to eight weeks.
The Argentina international has struggled with injuries throughout this year, and his colleague for club and country Mascherano believes the 26-year-old has previously rushed himself back to action too quickly.
And with the FIFA World Cup in Brazil on the horizon, Mascherano has urged Messi to only return when he is 100 per cent ready.
"When we saw Leo lying on the ground and looking at the bench (against Betis), we knew something was up," he told Ole.
"Now he has to be the most selfish person in the world and recover properly.
"Relaxing and taking some time out for himself will do him good.
"Messi is fine. Now he's focused on his recovery. It's a muscle injury, so it's nothing earth-shattering."
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.