1 Corinthians 10:20
Rather, that the things which the Gentiles sacrifice they sacrifice to demons and not to God, and I do not want you to have fellowship with demons.
Corinthians says that when we are not committing to God. When we are acknowledging or giving offerings at a shrine or a temple, we are sacrificing to demons.