Francis Scott Key wrote the national anthem but the words One Nation Under God is from the Pledge of Allegiance written by Francis Bellamy.
I don’t know what the writer’s intension was but is confusing.
“the words One Nation Under God is from the Pledge of Allegiance written by Francis Bellamy.”
Nope. Congress added “under God” in 1954.