Woe to them! For they walked in the way of Cain and abandoned themselves for the sake of gain to Balaam's error and perished in Korah's rebellion.
Jude 1:11

Cain's religion is self-made. "I'll do it my way. God knows my heart." Yes, He does.

Balaam's religion is profit-driven, selling out God and God's people for more stuff.

Korah's religion is about envy. "Why should Moses and Aaron get all the glory? I'm just as good as them!"

Cain, Balaam, and Korah all thought they knew better than God. They knew what was right, but did whatever they wanted instead. They "ministered" for pay and position. Sound like anyone you know? They're dead now. God still lives.