Our sages, of blessed memory, said: From where do we derive gilgul shevuah from the Torah? As it is stated regarding a sotah whose husband warned her regarding a certain man and she secluded herself with him, and he makes her drink the bitter waters to examine her, whether she is pure or not, and the kohen adjures her, and it is written: "And the woman shall say, Amen, Amen." And the tradition arrived that for this reason "Amen" was doubled twice: that the kohen rolls upon her to adjure her if she did not commit adultery with another man, even though the husband only warned her regarding a certain man, and without a warning it is impossible to make her drink; nevertheless, since she is forbidden to her husband even if she committed adultery with another man, he rolls it upon her even though the warning was not regarding him. And from this we learned gilgul shevuah. Therefore, our sages, of blessed memory, said that anyone who is obligated in a shevuah in beit din, even a shevuat hesset, his litigant can roll upon him any claim that he has against him, even though he did not come with him now to judgment for these claims, and even if for these claims he would not have been able to adjure him—just as with a sotah, where regarding another man he would not have been able to make her drink since he did not warn her regarding him. However, which claim can he roll upon him? Specifically such a claim that if the defendant were to admit to the plaintiff, he would be liable for money by his admission, just as with a sotah, for even if she committed adultery with another man, she is forbidden to her husband. But such a claim that even if he were to admit to it he would not be liable for money but only for a shevuah—for example, if he rolls upon him a claim that he was a partner with him and became obligated to him in a shevuat hashuataphin, and the defendant says "I was not your partner"—one does not roll such a claim, for even if he were to admit to him that he was his partner, he would not be liable for money but only for a shevuah. However, if he admits that he was his partner, or if it is known that he was his partner, he can roll upon him that he did not profit at all during that time, or that he did not profit more than what he showed in the account, and so too anything similar to this. Only regarding a hired worker does one not roll, as I wrote in siman 89, for "to it he lifts up his soul," see there.
אמרו רבותינו ז"ל מניין לגילגול שבועה מן התורה שנאמר בסוטה שקינה לה בעלה מאיש פלוני ונסתרה עמו ומשקה אותה המים המאררים לבודקה אם טהורה היא אם לאו והכהן משביע אותה וכתיב ואמרה האשה אמן אמן ובאה הקבלה דלכך הוכפלה שני פעמים אמן שהכהן מגלגל עליה להשביעה אם לא זינתה מאיש אחר אף שהבעל לא קינא לה רק מאיש פלוני ובלא קינוי א"א להשקותה מ"מ כיון דנאסרה על בעלה גם אם זינתה מאיש אחר מגלגל עליה אף שהקנוי לא היה ממנו ומזה למדנו גילגול שבועה ולכן אמרו רז"ל דכל מי שנתחייב שבועה בב"ד אפילו שבועת היסת יכול בעל דינו לגלגל עליו כל תביעה שיש לו עליו אף שלא בא עמו עתה לדין בעד תביעות אלו ואף אם בעד אלו התביעות לא היה יכול להשביעו כמו בסוטה דעל איש אחר לא היה יכול להשקותה כיון שלא קינא לה ממנו אמנם איזה תביעה יכול לגלגל עליו דווקא תביעה כזו שאם היה הנתבע מודה להתובע היה חייב ממון בהודאתו כמו בסוטה דאף אם זינתה מאיש אחר הרי נאסרה על בעלה אבל תביעה כזו שאף אם היה מודה בה לא היה חייב ממון אלא שבועה כגון שמגלגל עליו טענה שהיה עמו שותף ונתחייב לו שבועת השותפין והנתבע אומר לא הייתי שותפך אין מגלגלין טענה כזו דאף אם היה מודה לו שהיה שותפו לא נתחייב בממון אלא בשבועה אמנם אם מודה שהיה שותפו או שידוע שהיה שותפו יכול לגלגל עליו שלא הרויח כלום באותו זמן או שלא הרויח יותר ממה שהראה בחשבון וכן כל כיוצא בזה רק בשכיר אין מגלגלין כמ"ש בסי' פ"ט דאליו הוא נושא את נפשו ע"ש: