These are similiar.
Then Jesus said to his disciples, "Whoever wishes to come after me must deny himself, take up his cross, and follow me. For whoever wishes to save his life will lose it, but whoever loses his life for my sake will find it. What profit would there be for one to gain the whole world and forfeit his life? Or what can one give in exchange for his life? For the Son of Man will come with his angels in his Father’s glory, and then he will repay everyone according to his conduct. (Mt 16:24-27)
Then they will hand you over to persecution, and they will kill you. You will be hated by all nations because of my name. And then many will be led into sin; they will betray and hate one another. Many false prophets will arise and deceive many; and because of the increase of evildoing, the love of many will grow cold. But the one who perseveres to the end will be saved. (Mt 24:9-13)