Topologically non-trivial magnetization configurations in ferromagnetic materials on the nanoscale, such as hopfions, skyrmions, vortices, etc., attract considerable attention of researchers during the last years. In this article applying the theory of micromagnetism, I demonstrate that the toroidal hopfion magnetization configuration is a metastable state of a thick cylindrical ferromagnetic nanodot or a nanowire of a finite radius. Existence of this state is a result of the competition of the exchange, magnetostatic, and magnetic anisotropy energies. The Dzyaloshinskyi-Moriya exchange interaction and surface magnetic anisotropy are of the second importance for the hopfion stabilization. The toroidal hopfion metastable magnetization configuration may be reached in the process of the sample re-magnetizing by applying an external magnetic field along the cylindrical axis.