This was penned by Nahum Tate a Poet Laureate of the United Kingdom, from 1692 to 1715. Tate is also prominent for giving Shakespeare’s tragedy King Lear, a happy ending.
While Shepherds Watched Their Flocks, was first published in the 1700 and focuses on the visit from the Angels of the Lord to announce the birth of Christ.