23 The same day came to him the Sadducees, which say that there is no resurrection, and asked him,
24 Saying, Master, Moses said, If a man die, having no children, his brother shall marry his wife, and raise up seed unto his brother.
25 Now there were with us seven brethren: and the first, when he had married a wife, deceased, and, having no issue, left his wife unto his brother:
26 Likewise the second also, and the third, unto the seventh.
27 And last of all the woman died also.
28 Therefore in the resurrection whose wife shall she be of the seven? for they all had her.
29 Jesus answered and said unto them, Ye do err, not knowing the scriptures, nor the power of God.
30 For in the resurrection they neither marry, nor are given in marriage, but are as the angels of God in heaven.
31 But as touching the resurrection of the dead, have ye not read that which was spoken unto you by God, saying,
32 I am the God of Abraham, and the God of Isaac, and the God of Jacob? God is not the God of the dead, but of the living.
33 And when the multitude heard this, they were astonished at his doctrine.
--------------When Jesus said there will be no marriage in heaven, he was referring to a very specific definition of marriage in which, according to Jewish law, which still holds for Orthodox Jews:
- A man could divorce a woman for any reason or no reason, and still be within the bounds of ethics and morality
- A woman could not divorce her husband. So if he left her without divorcing her, she could not marry another man.
- Adultery was something contingent on the marital status of the woman, and not of the man. A married man could consort with a whore if he wished and would not be guilty of adultery.
Also marriage includes reproduction and child rearing. That is the main purpose of marriage. A permanent male-female sexual relationship that did not include child bearing and child rearing would not be marriage in the strictest sense. You might call it permanent sexual companionship or marriage' (marriage-prime), and it would be holy in its own way.
Here’s a link outlining the difficulties of a traditional Torah marriage, which has not changed since Jesus’ day.
This also explains the Gospel’s restriction of divorce (no divorce except for infidelity) - Jewish law allowed men to divorce their wives for any reason, and it did not allow women to divorce their husbands. This law is almost identical in orthodox Judaism and in Islam today - divorce is something that men do to women, and not vice versa. If wives are their husbands’ property, then it is up to the husband to release (or not release) his property. Property does not release its owner!
So the question regarding the woman who married seven brothers, each dying after the others was - whose property will she be in the afterlife? And Jesus' answer was - no one's. Per the definition on marriage in the minds of the audience, there would be no marriage in the afterlife. Not their kind of marriage. Not even an egalitarian, earthly marriage since that implies childbearing and child rearing. We're like the angels in the afterlife. Do angels marry? Do they exist in space? In time? No, no and no. But they do have something else equivalent to marriage - let's call that marriage-prime, for want of a better word. And they ave their own equivalent of the spatial and temporal dimensions - let us call those space-prime and time-prime.
The problem is reading Jesus' words without understanding the historical context.