This has been revealed by Kevin Hart that he was infected with Coronavirus right around the time when Tom Hanks and Rita Wilson were also infected with the virus.
One might wonder why Kevin didn’t reveal about the diagnosis during those time…. and this has been explained by the actor.

This has been stated by Kevin Hart during his comedy set at Dave Chappelle’s show; “The problem is that I had it around the same time as Tom Hanks, And i couldn’t say anything because he is’s more famous than i am.”

But about the infections of Tom and Rita it was revealed by them about thier Covid-19 infection at the start of the Pandemic even at that time lockdown were not instituted. They both fully recovered from the viral disease and now are enjoying thier life.