Actually, I think that the library is mine, not Qs.
The Franklin speech has been contentious for over 200 years. What he said, why he said it, even IF he said parts of it.
What is know for sure is that he stepped up at a moment in time to refocus everyone on the true meaning of what needed addressed.
Here is one scholars view of what he calls the "controversy". It brings the meaning of WHY he said what he said to question. The source is good and well researched with solid references. It doesn't discount the merits of what he said, but it does put things in a somewhat different view.
The Franklin Prayer
Let me apologize up-front and admit I am not going to read Franklin's prayer nor commentary on his prayer, nor argument on the commentary about his prayer nor wheather he even prayed any of it or all of it or none of it.
My understanding of Franklin is that he came to different understandings of his beliefs as time passed.
So if we take any normal life as layered like an Shrek's onion, then Franklin's life would have been comparatively layered as a Tiramisu. If we inspect a single layer of this life, we will find a particular answer concerning Mr Franklin's religiosity, or lack thereof.
In his younger years he was what Christians charitably describe as "a free-thinker."
In his middle years he was a deist, sort-of. A deist of convenience, perhaps.
Toward the latter part of his middle years he became a Mason (IIRC). What is the one thing you must believe in order to become a Mason?
Toward the end of his years he (re-)joined the Quackers and with the Quakers, conducted probably the first peaceful demonstration that disrupted Congress while in session. It was to protest a coming vote allowing slavery. With his Quaker congregation, he was an ardent abolitionist and warned that failure to address the incongruity of the Declaration of Independence with the myopic practicality of the Constitution would wreck the republic. perhaps he spoke with God's prophecy. At any rate, he was right.