In the Constitution, Article II, Section 1. See the link below. The text of the oath is as follows: I do solemnly swear (or affirm) that I will faithfully execute the office of President of the United States; and will, to the best of my ability, preserve, protect and defend, the Constitution of the United States.