William McKinley actually said...
I therefore ask the people of the United States, upon next assembling for divine worship in their respective places of meeting, to offer thanksgiving to Almighty God
Context
Address to the People for Thanksgiving and Prayer
07/05/1898