קידושין ד:ט · Kiddushin 4:9

מִי שֶׁנָּתַן רְשׁוּת לִשְׁלוּחוֹ לְקַדֵּשׁ אֶת בִּתּוֹ וְהָלַךְ הוּא וְקִדְּשָׁהּ, אִם שֶׁלּוֹ קָדְמוּ, קִדּוּשָׁיו קִדּוּשִׁין. וְאִם שֶׁל שְׁלוּחוֹ קָדְמוּ, קִדּוּשָׁיו קִדּוּשִׁין. וְאִם אֵינוֹ יָדוּעַ, שְׁנֵיהֶם נוֹתְנִים גֵּט. וְאִם רָצוּ, אֶחָד נוֹתֵן גֵּט וְאֶחָד כּוֹנֵס. וְכֵן הָאִשָּׁה שֶׁנָּתְנָה רְשׁוּת לִשְׁלוּחָהּ לְקַדְּשָׁהּ, וְהָלְכָה וְקִדְּשָׁהּ אֶת עַצְמָהּ, אִם שֶׁלָּהּ קָדְמוּ, קִדּוּשֶׁיהָ קִדּוּשִׁין. וְאִם שֶׁל שְׁלוּחָהּ קָדְמוּ, קִדּוּשָׁיו קִדּוּשִׁין. וְאִם אֵינוֹ יָדוּעַ, שְׁנֵיהֶם נוֹתְנִין לָהּ גֵּט. וְאִם רָצוּ, אֶחָד נוֹתֵן לָהּ גֵּט וְאֶחָד כּוֹנֵס:
In a case of one who authorized his agent to betroth his daughter to a man that the agent would deem fit, and the father went and betrothed her to someone else, if his betrothal preceded that of the agent, his betrothal is a valid betrothal; and if the betrothal of his agent preceded his own, the betrothal of the agent is a valid betrothal. And if it is not known whose betrothal came first, both men who might have betrothed her give her a bill of divorce in order to render her permitted to marry someone else. And if they wish and agree between them, one gives a bill of divorce and the other marries her. And similarly, with regard to a woman who authorized her agent to betroth her and she then went and betrothed herself to someone else, if her own betrothal preceded that of the agent, her betrothal is a valid betrothal, and if that of her agent preceded hers, the agent’s betrothal is a valid betrothal. And if they do not know whose betrothal came first, both men who may have betrothed her give her a bill of divorce. And if they wish, one may give a bill of divorce and the other marries her.

Word-by-word Breakdown (מילים ושרשים)

מִי → In a case of שֶׁנָּתַן → one who authorized [נ - ת - ן]רְשׁוּת → authority [ר - ש - ה]לִשְׁלוּחוֹ → to his agent [ש - ל - ח]לְקַדֵּשׁ → to betroth [ק - ד - ש]אֶת → [direct object marker] בִּתּוֹ → his daughter [ב - נ - ה]וְהָלַךְ → and went [ה - ל - ך]הוּא → he וְקִדְּשָׁהּ → and betrothed her [ק - ד - ש]אִם → if שֶׁלּוֹ → of his קָדְמוּ → preceded [ק - ד - ם]קִדּוּשָׁיו → his betrothal [ק - ד - ש]קִדּוּשִׁין → is a betrothal [ק - ד - ש]וְאִם → and if שֶׁל → of שְׁלוּחוֹ → his agent [ש - ל - ח]קָדְמוּ → preceded [ק - ד - ם]קִדּוּשָׁיו → his betrothal [ק - ד - ש]קִדּוּשִׁין → is a betrothal [ק - ד - ש]וְאִם → and if אֵינוֹ → it is not [א - י - ן]יָדוּעַ → known [י - ד - ע]שְׁנֵיהֶם → both of them [ש - נ - ה]נוֹתְנִים → give [נ - ת - ן]גֵּט → a bill of divorce [ג - ט - ט]וְאִם → and if רָצוּ → they wish [ר - צ - ה]אֶחָד → one [א - ח - ד]נוֹתֵן → gives [נ - ת - ן]גֵּט → a bill of divorce [ג - ט - ט]וְאֶחָד → and one [א - ח - ד]כּוֹנֵס → marries [כ - נ - ס]וְכֵן → And similarly [כ - ו - ן]