Passage
On that day Sadducees (those who say that there is no resurrection) came to him. They asked him,
On that day Sadducees (those who say that there is no resurrection) came to him. They asked him,
Matthew 22:21 They said to him, “Caesar’s.” Then he said to them, “Give therefore to Caesar the things that are Caesar’s, and to God the things that are God’s.”
Matthew 22:22 When they heard it, they marveled, and left him, and went away.
Matthew 22:23 On that day Sadducees (those who say that there is no resurrection) came to him. They asked him,
Matthew 22:24 saying, “Teacher, Moses said, ‘If a man dies, having no children, his brother shall marry his wife, and raise up offspring for his brother.’
Matthew 22:25 Now there were with us seven brothers. The first married and died, and having no offspring left his wife to his brother.
The verse centers on "sadducees", "resurrection", "came", and "asked". It is saying that the verse draws attention to "sadducees" and "resurrection", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 22's "When they heard it they marveled and..." into verse 24's "saying Teacher Moses said If a man...", so "sadducees" and "resurrection" belong inside that flow. In Matthew context, the local focus is Christ, faith, and discipleship.
A plain takeaway is to answer the verse's own emphasis on "sadducees" and "resurrection" with trust shaped by these words, not by a vague optimism outside the passage.