The mightiest of kings danced before the ark of the Lord, and when he was rebuked by his own wife because he had been stripped before the face of the maidens, he answered: Before the Lord I will be stripped yet more, and I will be a trifler before your eyes, that the Lord, he says, may be honoured, who took me into the kingdom in place of your father, teaching that no regard is to be had for royal power where homage is paid to religion. For it is honourable to act for religion's sake, even if that is unbecoming to power.
Source: Apology for the Prophet David, Chapter 6