Messi agreed to leave the club for the World Cup