Guardiola coached Messi between 2008 and 2012, with Barca winning 14 trophies during his tenure at Camp Nou.
Tito Vilanova took over when Guardiola left and guided Barca to a LaLiga title in 2012-13, though he left the post due to ill health and subsequently died of cancer within a year.
After Gerardo Martino's brief spell in charge, former Barca attacker Luis Enrique took charge in 2014 and enjoyed three trophy-laden years as Blaugrana boss.
Luis Enrique guided Barca to two LaLiga titles, three successive Copa del Rey triumphs and the 2014-15 Champions League.
In 105 league appearances under Luis Enrique, Messi netted 106 goals – scoring every 84.29 minutes on average – provided 43 assists and created a total of 251 chances.
Now boss of Spain, Luis Enrique left Barca when his contract expired after three years, and Ernesto Valverde and Quique Setien both failed to achieve the same level of success, while Ronald Koeman has endured a difficult start.
In an interview with Sexta which is to be broadcast on December 27, Messi claimed Guardiola and Luis Enrique are the very best he has worked with.
"Pep has something special, he makes you see things in a way," six-time Ballon d'Or winner Messi said.
"How he prepared the matches, defensively, how to attack, he told you exactly where the game was, how you had to attack to win.
"I was lucky that I had a lot of time with Guardiola and Luis Enrique, the two best. Having them [for so long] made me grow a lot in football and in the tactical wisdom that they taught me."
Messi led Barca to a 3-0 victory over Real Valladolid on Tuesday, surpassing Pele's record of 643 goals for one club side in the process.