Shivchei HaRan, Part I, 15
And he was very, very accustomed to vows. Many times, when the day came, he took upon himself by a vow the whole order of service that he wanted to do on that day, and afterward, even though it was very hard for him, he was compelled to do it because of the vow. And so he did many, many times. Likewise with all kinds of fences and safeguards of abstinence from some desire or from some trait, he was very accustomed to vows, many, many times. And many, many times he swore about certain things while holding a sacred object, so that he would be firm in separating himself from the thing from which he wanted to separate himself.
View original Hebrew
והיה רגיל בנדרים מאד מאד, שכמה פעמים כשבא היום קבל עליו בנדר כל סדר העבודה שהיה רוצה לעשות באותו היום, ואחר־כך אף על פי שהיה קשה עליו מאד היה מוכרח לעשות מחמת הנדר. וכן עשה כמה וכמה פעמים. וכן בכל מיני גדרים וסיגים של פרישות מאיזה תאוה ומאיזה מידה היה רגיל הרבה בנדרים כמה וכמה פעמים. וכמה וכמה פעמים נשבע על איזה דברים בנקיטת חפץ, כדי שיהיה חזק לפרש מאותו הדבר שהיה רוצה לפרש עצמו.