The Rambam wrote in chapter 7 of Arachin: One who consecrates all his property and afterwards divorced his wife, and she collected her ketubah from the one who redeems it from the Hekdesh, she does not collect until he vows to forbid her from any benefit, lest they made a conspiracy against the Hekdesh. And we do not say, had he wanted, he could have said "I consecrated in error" and would ask a sage regarding his Hekdesh and it would return to him. And similarly, he is not believed to say after he consecrated, "I owe a maneh to so-and-so" or "this vessel belongs to so-and-so," lest they make a conspiracy against the Hekdesh. And even if there was a deed in the hand of the creditor, he does not collect based on this, but rather in the manner that all creditors collect. In what case does this apply? Regarding a healthy person. But a sick person who consecrated all his property and said at the time he consecrated, "a maneh belonging to so-and-so is in my hand," he is believed, for a person does not practice deception against the Hekdesh at the time of his death and sin for others, since he is going to die. Therefore, if he said "give it to him," he takes without an oath. And if he did not say "give," they do not give unless he had a verified deed in his hand; such a one takes from the Hekdesh because of the instruction. And if after he consecrated he said "give," they do not listen to him, but rather he is like any other creditor; if his deed is verified, he swears and collects from the redeemer, not from the Hekdesh. And one about whom a rumor went out that he declared his property ownerless, or consecrated them, or banned them, we do not concern ourselves with him until there is clear evidence there. Thus far his words.
And the Rambam, of blessed memory, holds that even though it was explained in siman 250, section 30, that a person facing death who consecrated all his property may retract if he recovers, nevertheless, while in his illness he cannot retract, according to the opinion of "some say" that we wrote there; for if not so, why after he consecrated do they not listen to him? And also at the time he consecrated, why does he need to state the reason "because he does not practice deception," since he can retract? [Netivot HaMishpat]. Furthermore, most poskim agreed that although in all matters "within the time of a greeting" is like the speech itself and one can retract, nevertheless regarding Hekdesh one cannot retract even within the time of a greeting. And so wrote the Rambam in chapter 15 of Ma'aseh HaKorbanot. Therefore, that which he wrote that a healthy person after he consecrated is not believed to say "a maneh belonging to so-and-so is in my hand," this is even within the time of a greeting. [And the difficulty of the Shach from Bava Kamma 73b: they answered that from one sanctity to another sanctity is different, but from the Rambam at the end of chapter 2 of Temurah it does not seem so; and one must say that this sugya is rejected, as the Mishneh LaMelekh wrote in chapter 15 of Ma'aseh HaKorbanot].
And that which he wrote that a healthy person is not believed to say "after he consecrated" and a person facing death is believed to say "at the time he consecrated," it is of one type, namely, immediately after he consecrated. And that which he wrote regarding a healthy person the language "after he consecrated" is because regarding a get by force the intention is after a time, for it is impossible to perform a get in a single moment, and regarding a get he was required to write "afterwards." Therefore, when he wrote "And similarly he is not believed to say etc." he necessarily had to write the language "after he consecrated," for if not so, there is no distinction between a healthy person and a person facing death. [And all is well].
And one should not ask: why indeed is he not believed with a migo that he could have asked a sage regarding his Hekdesh? For it can be said that a sage is not available at all times. Furthermore, after it has come into the hand of the treasurer, it is possible that asking does not avail, just as with terumah after it has come into the hand of a kohen. And even if asking avails for terumah when it has come into the hand of a kohen, nevertheless this is certainly so: if the kohen ate the terumah, asking does not avail, for if he asks, has the kohen not eaten tevel? And so too regarding Hekdesh, when it has come into the hand of a treasurer and someone committed me'ilah with it and brought a sacrifice for me'ilah, if we say that asking avails, he has brought non-sacred items into the Temple courtyard.
And that which he wrote that the collection is from the redeemer from the Hekdesh, it was explained there previously that from the Hekdesh itself the sages forbade collecting in any case, so that it should not appear as if one is removing from Hekdesh to mundane use. [And according to what I wrote, it is well why the Rambam omitted in chapter 4 of Terumot the law of terumah in the hand of a kohen, because he holds that it does not depend on this. And furthermore, it is well that he ruled not like Rabbi Yehoshua in Arachin 23a. And his reason seems to me to be because of the sugya in Shevuot 42b. And according to what I wrote, the sugyot do not contradict, for certainly the halacha is like Rabbi Yehoshua, but because it is not possible to ask every time, the sages were stringent. And the words of the Rambam and the Shulchan Aruch are well here and in Even HaEzer siman 102, and examine it].
כתב הרמב"ם בפ"ז מערכין המקדיש כל נכסיו ואח"כ גירש אשתו וגבתה כתובתה מיד הפודה מן ההקדש אינה גובה עד שידירנה הנאה שמא קנוניא עשו על ההקדש ואין אומרים אלו רצה היה אומר בטעות הקדשתי וישאל על הקדשו לחכם ויחזור לו וכן אין נאמן לומר אחר שהקדיש מנה לפלוני חוב עלי או כלי זה של פלוני הוא שמא יעשו קנוניא על ההקדש ואפילו היה שטר ביד בע"ח אינו גובה ע"פ זה אלא כדרך שגובין כל בעלי חובות בד"א בבריא אבל חולה שהקדיש כל נכסיו ואמר בשעה שהקדיש מנה לפלוני בידי נאמן שאין אדם עושה ערמה על ההקדש בשעת מיתתו וחוטא לאחרים שהרי הוא הולך למות לפיכך אם אמר תנו אותה לו נוטל בלא שבועה ואם לא אמר תנו אין נותנין אא"כ היה בידו שטר מקויים ה"ז נוטל מן ההקדש מפני הצוואה ואם אחר שהקדיש אמר תנו אין שומעין לו אלא הרי הוא כשאר בע"ח אם נתקיים שטרו נשבע וגובה מן הפודה לא מן ההקדש ומי שיצא עליו קול שהפקיר את נכסיו או הקדישן או החרימן אין חוששין לו עד שתהיה שם ראיה ברורה עכ"ל וס"ל להרמב"ם ז"ל דאף שנתבאר בסי' ר"ן סעיף ל' דשכ"מ שהקדיש כל נכסיו חוזר בו אם עמד מ"מ בחליו אינו יכול לחזור בו כדעת י"א שכתבנו שם דאל"כ למה אחר שהקדיש אין שומעין לו וגם בשעה שהקדיש למה לו לומר הטעם מפני שאינו עושה הערמה כיון שיכול לחזור בו [נה"מ] ועוד הסכימו רוב הפוסקים דאע"ג דבכל הדברים תוך כדי דיבור כדבור דמי ויכול לחזור בו מ"מ בהקדש אינו יכול לחזור בו אף תוך כ"ד וכ"ב הרמב"ם בפט"ו ממעה"ק ולכן זה שכתב דבריא אחר שהקדיש אינו נאמן לומר מנה לפלוני בידי זהו אפי' תוך כ"ד [וקושית הש"ך מב"ק ע"ג: תרצו דמקדושה לקדושה שאני אך מרמב"ם ספ"ב מתמורה לא משמע כן וצ"ל דסוגיא זו נדחית כמ"ש המל"מ פט"ו ממעה"ק] וזה שכתב דבריא אין נאמן לומר אחר שהקדיש ושכ"מ נאמן לומר בשעה שהקדיש בחד גוונא הוא והיינו תיכף אחר שהקדיש ומה שכתב בבריא לשון אחר שהקדיש משום דבגט בע"כ הכוונה אחר זמן דא"א לעשות גט ברגע אחד ובגט הוצרך לכתוב אח"כ ולכן כשכתב וכן אין נאמן לומר וכו' בהכרח היה לו לכתוב לשון אחר שהקדיש דאל"כ אין חילוק בין בריא לשכ"מ [וא"ש הכל] ואין להקשות למה באמת אינו נאמן במיגו שהיה יכול לישאל לחכם על הקדשו די"ל דלאו בכל עת מזדמן חכם ועוד דאחר שבא ליד הגזבר אפשר דלא מהני שאלה כמו בתרומה אחר שבא ליד כהן ואף אם מהני שאלה בתרומה כשבא ליד כהן מ"מ זהו ודאי כשהכהן אכל התרומה לא מהני שאלה דאם ישאל הלא אכל הכהן טבל וכן בהקדש כשבא ליד גזבר ואחד מעל בו והביא קרבן מעילה אם נאמר דמהני שאלה הרי הביא חולין לעזרה וזה שכתב דהגבייה הוא מיד הפודה מן ההקדש נתבאר שם מקודם דמהקדש עצמו אסרו חכמים לגבות בכל ענין כדי שלא יתראה כמוציא מהקדש לחול [ולפמ"ש א"ש מה שהשמיט הרמב"ם בפ"ד מתרומות דין תרומה ביד כהן משום דס"ל דאינו תלוי בזה ועוד א"ש מה שפסק דלא כר"י בערכין כ"ג. וטעמו נ"ל מפני סוגיא דשבועות מ"ב: ולפמ"ש אין הסוגיות סותרות דודאי הלכה כר"י אלא משום דלאו בכל פעם אפשר לישאל החמירו חז"ל וא"ש דברי הרמב"ם והשו"ע בכאן ובאהע"ז סי' ק"ב ודוק]: