In this work we characterize all the static and spherically symmetric vacuum solutions in f(R) gravity when the principal null directions of the Weyl tensor are non-expanding. In contrast to General Relativity, we show that the Nariai spacetime is not the only solution of this type when general f(R) theories are considered. In particular, we find four different solutions for the non-constant Ricci scalar case, all of them corresponding to the same theory, given by f(R)=r0-1R-3/r021/2\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$f(R) = r_0^{-1}\\left|R-3/r_0^2\\right|^{1/2}$$\\end{document}, where r0\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$r_0$$\\end{document} is a non-null constant. Finally, we briefly present some geometric properties of these solutions.