Perhaps when he was among Jews.
No, not just when he was with Jews. That would be hypocritical. That was the very thing he upbraided Peter over, remember? There is a verse in the Bible. An important verse. It reads “If you love Me, keep My Commandments”. It’s in there I guarantee it. You can find it too if want to bad enough.