(Literary/Biblical) To pursue false beliefs, idols, or forbidden pleasures in a morally corrupt way.
"The prophet accused the people of whoring after foreign gods and abandoning their traditions."
And they shall no more offer their sacrifices unto devils, after whom they have gone a whoring.
— The Bible, Leviticus 17:7 (King James Version)