Justin Bieber took on Kevin Hart in a charity tennis match yesterday ... with Will Ferrell acting as line judge.