Dan 9:27, Lk 21:24, Rom 11:25-26, Mt 24:14

In the Old Testament, the book of Daniel tells the time when all things will end. (Dan 12:7, Dan 9:27)

Dan 12:7 And I heard the man clothed in linen, which was upon the waters of the river, when he held up his right hand and his left hand unto heaven, and sware by him that liveth for ever that it shall be for a time, times, and an half; and when he shall have accomplished to scatter the power of the holy people, all these things shall be finished.

Dan 9:27 And he shall confirm the covenant with many for one week: and in the midst of the week he shall cause the sacrifice and the oblation to cease, and for the overspreading of abominations he shall make it desolate, even until the consummation, and that determined shall be poured upon the desolate.

Jesus told the Israelites that Jerusalem would be trampled underfoot by the Gentiles until the times of the Gentiles were fulfilled, that is, until the gospel had been preached to all Gentiles. (Luke 21:24)

Luke 21:24 And they shall fall by the edge of the sword, and shall be led away captive into all nations: and Jerusalem shall be trodden down of the Gentiles, until the times of the Gentiles be fulfilled.

When the full number of the Gentiles comes in, Israel will be saved. (Romans 11:25-26)

Romans 11:25 For I would not, brethren, that ye should be ignorant of this mystery, lest ye should be wise in your own conceits; that blindness in part is happened to Israel, until the fulness of the Gentiles be come in. 26 And so all Israel shall be saved: as it is written, There shall come out of Sion the Deliverer, and shall turn away ungodliness from Jacob:

Only then will the end come after the gospel of the kingdom is preached to all nations. (Mt 24:14)

Mt 24:14 And this gospel of the kingdom shall be preached in all the world for a witness unto all nations; and then shall the end come.