Following the way of Balaam. See Numbers 31:16. Balaam sold himself out to an evil cause for the sake of gain.