Romans 12:2

and be not conformed to this life, but be transformed by the renewing of the mind, that you may prove what is the will of God which is good and well-pleasing and perfect.

Ephesians 4:17

This I say then and testify in the Lord, that you no longer walk as the other gentiles walk, in the vanity of their minds,

1 Peter 4:3-4

For the time past is sufficient for us to have performed the will of the gentiles, walking in lewdness, inordinate desires, drunkenness, revellings, drinkings and unlawful idolatries,

Treasury of Scripture Knowledge

Summary

Take heed to thyself that thou be not snared by following them, after that they be destroyed from before thee; and that thou inquire not after their gods, saying, How did these nations serve their gods? even so will I do likewise.

Bible References

How did

Romans 12:2
and be not conformed to this life, but be transformed by the renewing of the mind, that you may prove what is the will of God which is good and well-pleasing and perfect.
Ephesians 4:17
This I say then and testify in the Lord, that you no longer walk as the other gentiles walk, in the vanity of their minds,
1 Peter 4:3
For the time past is sufficient for us to have performed the will of the gentiles, walking in lewdness, inordinate desires, drunkenness, revellings, drinkings and unlawful idolatries,