שולחן ערוך, אבן העזר, Seder Halitzah Seder Halitzah · כט
Shulchan Arukh, Even HaEzer 308
יעמדו היבם והיבמה על רגליהם ואם היבמה חפצה ביבום יאמרו ליבם אי ניחא לך חלוץ אי ניחא לך ייבם והוא ישיב שאינו חפץ ביבום ואם היבם חפץ ביבום והיבמה אינה חפצה או שהיא מאותם שחולצות ולא מתייבמות מלמדין אותו תחלה שישוב שאינו חפץ לייבם וכך יאמרו לו אתה חפץ לחלוץ ליבמתך זו והוא משיב הן: הגה וי"א שבכל ענין שואלים אותו אם רוצים לייבם או לחלוץ ואע"ג דמצות חליצה קודמת מ"מ שואלים אותו כדי שיאמר שרצונו לחלוץ ויראו שכבר היה מרוצה לחלוץ ויאמר שחפץ בחליצה וכן נוהגין ויש מוסיפין אם יש לו אשה לומר לו שמותר לישא אותה ואין בזה משום חרם ר"ג (וע"ל בפירוש סדר החליצה סי' מ"ד ומ"ו):
The yavam and yevama stand on their feet. If the yevama desires to undergo levirate marriage, they (the court) say to the yavam, "If you so desire, release [the yevama] via chalitza, if you desire take her in levirate marriage." He answers that he does not desire levirate marriage. If the yavam prefers levirate marriage and the yevama does not, or she is one of the women who require chalitza release, but (by Rabbinic law) may not undergo levirate marriage, they initially teach him to respond that he does not desire levirate marriage. They say thusly to him, "Do you desire to release this [woman] your yevama with chalitza?" and he answers, "Yes". Rama: Some say that they always ask whether he wants to perform levirate marriage or to release the woman via chalitza. Even though chalitza is preferable, they nevertheless ask him so that he explicitly states that he wants to release the woman with chalitza, and they should determine that he was already satisfied with chalitza, and he says that he desires chalitza, and this is the proper custom. Some add that if the yavam already has a wife, the court tells him that he is still permitted to "marry" (i.e. take the yevama in levirate marriage) and this would not run afoul of the excommunication of Rabbenu Gershom [against bigamy]. See also in the Seder Chalitza sections 44 and 46.