Jesus clarified that as well:
[Mar 12:23-25 KJV] 23 In the resurrection therefore, when they shall rise, whose wife shall she be of them? for the seven had her to wife. 24 And Jesus answering said unto them, Do ye not therefore err, because ye know not the scriptures, neither the power of God...