Lionel Messi has wished Ernesto Valverde luck for the future after the coach left Barcelona, calling his former boss a "top professional and top person."

Barca, following a defeat to Atletico Madrid in the Supercopa de Espana, decided to part ways with Valverde on Monday, with Quique Setien swiftly named as his replacement.

Former Athletic Bilbao boss Valverde took over Barca in 2017 and guided the club to successive LaLiga titles plus a Copa del Rey success.

However, a dramatic capitulation to Liverpool in last season's Champions League semi-finals, followed by a defeat to Valencia in the Copa del Rey final, put Valverde under scrutiny and, despite being top of LaLiga, Barca fired the coach after missing out on another title in the form of the Supercopa.

Gracias por todo, míster. Seguro que te irá genial allá donde vayas porque, además de ser un gran profesional, sos una magnífica persona. Mucha suerte y un abrazo grande.

A post shared by Leo Messi (@leomessi) on

Messi, who scored 112 goals in all competitions under Valverde, has now given his thanks to the Spaniard, who the forward is confident will thrive in his next job.

"Thanks for everything, gaffer," Messi posted to his official Instagram account on Tuesday.

"I'm sure everything will go well for you wherever you go because, as well as being a top professional, you're also a top person. Good luck and a big hug."

Setien oversaw training on Tuesday before being presented to the media, with the former Real Betis coach taking charge of his first LaLiga match as Barca coach against Granada on Sunday.