Rav Yitzhak Yosef Shlit"a in Merkaz Harav: My Father ZT"L Prayed That They Wouldn't Return Territories
Regarding the Six Day War, he said:
I was a boy, but I remember how scary it was. They thought that there would be thousands of corpses, Has Veshalom. What miracles and wonders we had!Whenever we see anything that shows that Rav Ovadia believed that giving up territories was the correct move, such as this recently publicized handwritten note by Rav Ovadia, it was always in the context of saving lives and not as a general principle. If it is necessary to save lives, such as the peace accord with Egypt, it is permitted. Otherwise, such as the Disengagement, which Rav Ovadia was vehemently against, it is forbidden. In cases like the Oslo Accords, Rav Ovadia initially backed it based on the advice of generals and the information he had at the time, thinking that it would save lives. When he realized it wouldn't and would do just the opposite, he admitted his mistake and rescinded his support for it.
They were shelling Yerushalayim. I was with Maran Abba A"H. Our building got shelled and it shook the building. Abba was sitting below and said, "We need to pray for the success of our soldiers." He learned with Hacham Ben Tzion Abba Sha'ul A"H as a Havruta. Rav Ben Tzion would briefly stop and was afraid that there was a shelling. Abba grabbed him and would tell him, "Come on, let's continue."
When the Kotel was captured, I went together with Maran Abba ZT"L to the Kotel. Abba arrived and prayed, "Master of the universe, give strength to our leaders that they will withstand the tests not to return the captured territories." Maran Abba knew that the day will come when all different types of groups will come, from the Geneva Initiative, and will want to return all types of territories. He stood and prayed that they will withstand these tests.
So, the next time someone tells you that Rav Ovadia ZT"L was a leftist (and I've unfortunately heard this lie many times), you can explain the truth to that person. May Rav Ovadia's prayer be realized and may the full reunification of Yerushalayim - including Har Habayit - come to us speedily in our days, Amen.