The purpose of this paper is to present a generalization of Forelli%26apos;s theorem. In particular, we prove an all dimensional version of the two-dimensional theorem of Chirka (Kompleks. Anal. i Prilozh, 232-240, 2006) of 2005.