The 45-year-old actor took to Instagram where he posted a picture with the "Bridge of Spies" star and wrote that he respects him for his work ethic and kindness.
Hanks had appeared on the episode of "Saturday Night Live" to support Johnson, who had hosted the show for the record fifth time.
"(I) want to say thank you to my bud Tom Hanks for taking time out of his busy schedule as he's shooting with Spielberg in NY, to come by and help induct me into the #SaturdayNightLive 5 Timer's Club.
In the "SNL" episode, the "Baywatch" star "officially" announced he would run for US President in 2020 and chose Hanks as his running partner.