From Politico:

A final statement from Sen. John McCain, who died Saturday at 81, read by his spokesman Rick Davis:

… And I owe it to America to be connected with America’s causes, liberty, equal justice, respect for the dignity of all people brings happiness more sublime than life’s fleeting pleasures. Our identities and sense of worth are not circumscribed but are enlarged by serving good causes bigger than ourselves.

Fellow Americans, that association has meant more to me than any other. I lived and died a proud American. We are citizens of the world’s greatest republic. A nation of ideals, not blood and soil. We are blessed and a blessing to humanity when we uphold and advance those ideals at home and in the world. We have helped liberate more people from tyranny and poverty than ever before in history. We have acquired great wealth and power in the progress. We weaken our greatness when we confuse our patriotism with rivalries that have sown resentment and hatred and violence in all the corners of the globe. We weaken it when we hide behind walls rather than tear them down, when we doubt the power of our ideals rather than trust them to be the great force for change they have always been. …

Ten years ago, I had the privilege to concede defeat in the election for president. I want to end my farewell to you with heartfelt faith in Americans that I felt so powerfully that evening.

I feel it powerfully still.

Do not despair of our present difficulties, we believe always in the promise and greatness of America because nothing is inevitable here. Americans never quit, we never surrender, we never hide from history, we make history. …