It is shown that, an immersion of n-dimensional compact manifold without boundary into (n + 1)-dimensional Euclidean space, hyperbolic space or the open half spheres, is a totally umbilic immersion if for some r, r