To swear by

to place great confidence in a person or thing; to trust implicitly as an authority.

See also: Swear

Webster's Revised Unabridged Dictionary, published 1913 by G. & C. Merriam Co.
References in classic literature ?
"Ah, I'm ready to do what you will," cried Porthos; "even to swear by Mahomet.