This parable is located in two different Gospels – Matthew (chapter 22) and Mark (chapter 12).
New International Version Translation of Mark:
Later they sent some of the Pharisees and Herodians to Jesus to catch him in his words. They came to him and said, “Teacher, we know that you are a man of integrity. You aren’t swayed by others, because you pay no attention to who they are; but you teach the way of God in accordance with the truth. Is it right to pay the imperial tax to Caesar or not? Should we pay or shouldn’t we?”
But Jesus knew their hypocrisy. “Why are you trying to trap me?” he asked, “Bring me a denarius and let me look at it.” They brought the coin, and he asked them, “Whose image is this? And whose inscription?“
“Caesar’s,” they replied.
Then Jesus said to them, “Give back to Caesar what is Caesar’s and to God what is God’s.“
And they were amazed at him.
Christian Standard Bible Translation of Matthew:
Then the Pharisees went and plotted how to trap him by what he said. So they sent their disciples to him, along with the Herodians. “Teacher,” they said, “we know that you are truthful and teach truthfully the way of God. You don’t care what anyone thinks nor do you show partiality. Tell us, then, what you think. Is it lawful to pay taxes to Caesar or not?”
Perceiving their malicious intent, Jesus said, “Why are you testing me, hypocrites? Show me the coin used for the tax.”
They brought him a denarius. “Whose image and inscription is this?” he asked them.
“Caesar’s,” they said to him.
Then he said to them, “Give, then, to Caesar the things that are Caesar’s, and to God the things that are God’s.“
When they heard this, they were amazed. So they left him and went away.
Brandon Robbins has insight into the context of this passage.