From the Scots Confession
Chapter 24 - The Civil Magistrate
We confess and acknowledge that empires, kingdoms, dominions, and cities are appointed and ordained by God; the powers and authorities in them, emperors in empires, kings in their realms, dukes and princes in their dominions, and magistrates in cities, are ordained by God's holy ordinance for the manifestation of his own glory and for the good and well being of all men. We hold that any men who conspire to rebel or to overturn the civil powers, as duly established, are not merely enemies to humanity but rebels against God's will. Further, we confess and acknowledge that such persons as are set in authority are to be loved, honored, feared, and held in the highest respect, because they are the lieutenants of God, and in their councils God himself doth sit and judge. They are the judges and princes to whom God has given the sword for the praise and defense of good men and the punishment of all open evil doers. Moreover, we state the preservation and purification of religion is particularly the duty of kings, princes, rulers, and magistrates. They are not only appointed for civil government but also to maintain true religion and to suppress all idolatry and superstition. This may be seen in David, Jehosaphat, Hezekiah, Josiah, and others highly commended for their zeal in that cause.
Therefore we confess and avow that those who resist the supreme powers, so long as they are acting in their own spheres, are resisting God's ordinance and cannot be held guiltless. We further state that so long as princes and rulers vigilantly fulfill their office, anyone who denies them aid, counsel, or service, denies it to God, who by his lieutenant craves it of them.