Catechism of the Catholic Church

a and b. Para. 593: Jesus venerated the Temple by going up to it for the Jewish feasts of pilgrimage, and with a jealous love he loved this dwelling of God among men. The Temple prefigures his own mystery. When he announces its destruction, it is as a manifestation of his own execution and of the entry into a new age in the history of salvation, when his Body would be the definitive Temple.
Para. 585: On the threshold of his Passion Jesus announced the coming destruction of this splendid building, of which there would not remain "one stone upon another" (Cf. Mt 24:1-2). . . . But this prophecy would be distorted in its telling by false witnesses during his interrogation at the high priest's house and would be thrown back at him as an insult when he was nailed to the cross (Cf. Mk 14:57-58; Mt 27:39-40).
Para. 586: Far from having been hostile to the Temple, where he gave the essential part of his teaching, Jesus was willing to pay the temple-tax . . . (Cf. Mt 8:4; 16:18; 17:24-27; Lk 17:14; Jn 4:22; 18:20).