Our sages, of blessed memory, said [Yevamot 118b]: One who betrothed one of five women and does not know which one he betrothed, and each one says "he betrothed me," if he desires, he may take them all according to the law of the Torah, as it is within his power to marry many women. And if he does not wish to marry them all [Rashi], he gives a get to each and every one and is forbidden to the relatives of all of them, and he places one ketubah between them and departs. And they either divide it among themselves or wait until one of them clarifies that she is the one he betrothed. And this is like the law of a deposit explained in Choshen Mishpat siman 300, where this one says "I am the owner of the deposit" and this one says "I am the owner of the deposit" when they deposited it without his knowledge, that he places the deposit between them and departs. And even though when they deposited it with his knowledge he is obligated to give to each and every one because he was negligent, as he should have been precise as to who the owner of the deposit was, and here too it is obvious that he should have been precise as to which woman he betrothed; nevertheless, here it is like "they did not claim from him" explained there, that he does not need to pay both of them even if he wishes to fulfill his obligation toward Heaven, because he has an excuse to say "it did not enter my mind that another would come to claim the deposit" [Sma subsection 12]. And all the more so in this case he can say "it did not enter my mind that another woman would say 'he betrothed me,'" and he is exempt even to fulfill his obligation toward Heaven [it appears to me]. And that which he is liable there when they claimed from him is because he was negligent, as he should have known that a deposit can last a long time and he would forget who the owner of the deposit was, and he should have written the name of the owner of the deposit [ibid.]. But regarding a woman this is not applicable, and it is analogous to a purchase explained there in siman 222, that he places it between them and departs [it appears to me, and so it seems in Yevamot ibid., and examine it closely].
אמרו חז"ל [יבמות קי"ח:] מי שקידש אחת מחמש נשים ואינו יודע איזו קידש וכל אחת אומרת אותי קידש, אם רצה נוטל כולן לפי דין תורה שביכולת לישא הרבה נשים, ואם אינו חפץ לישא את כולן [רש"י] נותן גט לכל אחת ואחת ונאסר בקרובות כולן, ומניח כתובה אחת ביניהם ומסתלק, והן או יחלקו ביניהן או עד שתברר אחת מהן שאותה קידש, וזהו כדין פקדון שנתבאר בחו"מ סי' ש' שזה אומר אני הוא בעל הפקדון וזה אומר אני הוא בעל הפקדון כשהפקידו שלא מדעתו דמניח הפקדון ביניהם ומסתלק, ואע"ג דכשהפקידו מדעתו חייב ליתן לכל אחד ואחד מפני שפשע דהו"ל למידק מי הוא בעל הפקדון וה"נ פשיטא דהו"ל למידק איזו אשה קידש, מ"מ בכאן הוה כלא תבעוהו שנתבאר בשם דא"צ לשלם לשניהם אפילו בבא לצאת י"ש מפני שיש לו להתנצל ולומר לא עלה על דעתי שאחר יבא לתבוע הפקדון [סמ"ע סקי"ב], וכ"ש דבזה יכול לומר לא עלה על דעתי שאשה אחרת תאמר אותי קידש, ופטור אפילו לצאת י"ש [נ"ל], וזה שבתבעוהו חייב בשם מפני שפשע דהיה לו לדעת שפקדון יוכל להמשך זמן ארוך וישכח מי הוא בעל הפקדון והיה לו לכתוב שם בעל הפקדון [שם], אבל באשה לא שייך זה, והוה דומיא דמקח שנתבאר שם בסי' רכ"ב דמניח ביניהם ומסתלק [נ"ל, וכ"מ ביבמות שם, ודו"ק].