The word "resurrection" does not refer to the Christian belief of going to heaven after death. Instead it refers to the bodily rising from the grave at the end of time.
As "The Apostles' Creed" states:
I believe in...the resurrection of the body, and the life everlasting.
From the original Latin:
Credo...in...carnis resurrectionem.
Which is literally: "physical" or "bodily resurrection."
As the Catechism of the Catholic Church explains:
By death the soul is separated from the body, but in the resurrection God will give incorruptible life to our body, transformed by reunion with our soul. Just as Christ is risen and lives for ever, so all of us will rise at the last day.--CCC 1016.
The Greek word "resurrection" does not mean to come back to life as a spirit person after death. The word means "to stand up, again," as in "physically."
While my writing this is not to say this reflects the religious beliefs of my Jewish community, Thayer's, Strong's, and others will agree with the creed and the CCC that it means a physical rising of the body, a reanimation of what has been put to death. This is why the Greeks laughed at Paul when he mentioned "resurrection" as recorded at Acts 17:32 because they believed in a spiritual afterlife, not a physical one.
The author of Matthew was referring to the resurrection. The Church Fathers wrote that this event did not occur on a grand scale. Therefore this verse, the Church Fathers wrote, must be speaking of enjoying the Beatific Vision.