That doctrine is from Paul, it has nothing to do with Jesus.
You prove once again your hatred for the holy apostles of the Lord and your ignorance to the words of the Lord.
These are the words spoken from the mouth of Jesus; Matthew 15:11; What goes into someone's mouth does not defile them, but what comes out of their mouth, that is what defiles them."
Mark 7:15; Nothing outside a person can defile them by going into them. Rather, it is what comes out of a person that defiles them."
Matthew 15:17-20; "Don't you see that whatever enters the mouth goes into the stomach and then out of the body? But the things that come out of a person's mouth come from the heart, and these defile them. For out of the heart come evil thoughts-murder, adultery, sexual immorality, theft, false testimony, slander. These are what defile a person; but eating with unwashed hands does not defile them."
Paul merely verifies the words spoken by Jesus, and that was, that you can eat any food set before you without questioning whether it had previously been offered to idols, etc.
John the beloved disciple of Jesus, was told to write this to the angel of the church in Pergamum; “But there are a few things I have against you: there are some among you who follow the teaching of Balaam, who taught Balak how to lead the people of Israel into sin by persuading them to eat food that had been offered to idols and to practise sexual immorality.”
According to the old covenant it was a sin to eat food that had been offered to idols, but that covenant was no longer in force when John was writing to the angel of the church in Pergamum.
The LORD says, “The time is coming when I will make a new covenant with the people of Israel and with the people of Judah. It will not be like the old covenant that I made with their ancestors when I took them by the hand and led them out of Egypt. Although I was like a husband to them, they did not keep that covenant. The new covenant that I will make with the people of Israel will be this: I will put my law within them and write it on their hearts. I will be their God, and they will be my people. None of them will have to teach his fellow-citizen to know the LORD, because all will know me, from the least to the greatest. I will forgive their sins and I will no longer remember their wrongs. I, the LORD, have spoken.”
The old covenant came into effect at Mt. Sinai through Moses, Israel’s representative, while the new covenant came into effect at Mt. Calvary through Christ, humanity’s representative.
On the night before his death the Son of MAN announced a “new covenant in my blood” (Luke 22:20). He was literally declaring his last will and testament, a new covenant that would come into effect when he died (Hebrews 9:16-28).
John goes on to reveal to the church in Pergamum: That in the same way that the Israelites of old were coerced into breaking the old covenant, by eating food offered to Idols and indulging in sexual immorality, they had people among them who follow the teaching of the Nicolaitans.
The doctrine of the Nicolaitans is the teaching that there is a strict hierarchy within God's church that must be respected by all. Ranks and levels are created in order to maintain power and control so that, ultimately, the lowest level of the church (the members) can be ruled over and taken advantage of at any time.