In 1685, Charles II died and his brother James succeeded him to the throne as James II. James Scott, Duke of Monmouth was an illegitimate son of Charles and launched a rebellion in the same year to gain the throne for himself. At Sedgemoor, his army was crushed and dispersed. The Duke himself would be executed. Here are James II's Meditations on the Battle of Sedgemoor:
Upon the defeat of Monmouth and Argyll, and suppressing those rebellions.
"Not unto us, O Lord, but to thy own blessed Name give all the glory." Awake my soul, and speedily preserve thy richest sacrifice of humble praise. Awake, and summon all thy thoughts, to make haste and adore thy great preserver and redeemer. Arise, my soul, to thee these joys belong; arise and advance thyself on high, and leave here below all earthly thoughts, and fly away with the wings of the spirit; fly to that glorious land of promise, and gladly salute those heavenly regions. Let us now consider, O Lord our God, let us thankfully remember what thou art to us. Thou art the great beginning of our nature, and glorious end of all our actions; thou art the overflowing source from whence we spring, and the immense ocean into which we tend; thou art the free bestower of all we possess, and faithful promiser of all we hope; thou art the strong sustainer of our lives, and ready deliverer from all our enemies. When we have applied our utmost cares, and used all the diligence that lies in our power, what can we do, but look up to thee, and second our endeavours with prayers for thy blessing! When we have implored thy gracious mercy, and offered thee our dearest sacrifice to obtain it, what can we do, but submit our hopes, and expect the issue from thy free goodness, we know, and thou thyself has taught us. "Unless thou defendest the city, the guard watches in vain." We know, and our own experience tells us, unless thou reachest forth thy hand, we are presently in danger of sinking. Sometimes, O Lord, thy all-wise Providence seems to sleep, and permits the storm to grow high and loud; yet never fails to relieve thy servants who faithfully call upon thee in the day of trouble. "I will extol thee, O Lord, for thou hast lifted me up, and hast not made my foes to rejoice over me. Now shall my head be lifted up above my enemies round about me; therefore will I offer in his tabernacle sacrifices of joy; yea I will sing praises unto the Lord."
"The Lord is my strength and my shield; my heart trusteth in him, and I am helped. Therefore with my song will I glorify and praise him; the Lord is the saving strength of his anointed. When the wicked, even mine enemies and my foes came upon me to eat up my flesh, they stumbled and fell. For the king trusteth in the Lord, and through the mercies of the Most High he shall not be moved."
Impute not to me, O Lord, the blood of my subjects, which with infinite unwillingness and grief hath been shed by me in my just and necessary defence, but wash me with that precious Blood which hath been shed for me by my great Peace-maker, Jesus Christ.
Quotation from http://www.jacobite.ca/documents/1692meditations.htm, a highly recommended website, containing over 100 original documents.