Stability of a generalization of Wilson’s equation