Generalization of Cowling's theorem