In this short note we consider the 3D Navier--Stokes equations in the whole space, for an incompressible fluid. We provide sufficient conditions for the regularity of strong solutions in terms of certain components of the velocity gradient.