1 Corinthians 10:27 If any of those who do not believe invites you to dinner, and you desire to go, eat whatever is set before you, asking no question for conscience’ sake.
There is a lot to discuss in the verses before and after so click here for a more in-depth look that explains this in more detail.
Covering just that verse: Many times we separate verse 27 and are taught if you go to dinner at your friends house to go ahead and eat whatever. Paul is only meaning in context of foods sacrificed to idols. He is not saying it is okay to go to your friends house and have a Ham sandwich. Nowhere does Paul state we are allowed to eat anything unclean. This verse is only talking about sacrificial food. Quite a bit of meat was sold at the market that was leftover animal parts from a sacrificed animals. Paul is merely saying don’t worry if you don’t know. Again, not if you don’t know if it is unclean or clean. At the time this was written they had a very CLEAR understanding of clean and unclean foods. Notice in verse 27 he also states “those who do not believe”. Paul knows at this point in time that those that “do believe’ would never eat unclean food and they would not knowingly eat anything sacrificed to another idol.
Here is another thing to ponder. If we are taught we can eat whatever we want because all the laws were “nailed to the cross”, then why is there a command demanding we don’t knowingly eat any foods sacrificed to other gods 20 years after our Messiah died?