Francis Scott Key said this quote

O! thus be it ever, when freemen shall standBetween their loved home and the war's desolation!Blest with victory and peace, may the heav'n rescued landPraise the Power that hath made and preserved us a nation.Then conquer we must, when our cause it is just,And this be our motto: 'In God is our trust.'And the star-spangled banner in triumph shall waveO'er the land of the free and the home of the brave!