And the explanation of it in this way is evidence that he intended residence (sukna), so it is similar to what would be the case if he said: "This is yours for you to reside in." And when it is possible that he intended the corpus for him, and it is possible that he intended residence, we do not remove his ownership based on mere possibility.
Section: If he makes an invalid gift or conducts an invalid sale, and then gifts that same object or sells it with a valid contract, while knowing of the invalidity of the first, the second contract is valid because he has exercised his own property while knowing it is his. If he believes the first contract was valid, there are two views regarding the validity of the second. One: It is valid, because his action concerned his own property and was completed according to its conditions, so it is valid, just as if he had known of the invalidity of the first. Second: It is not valid, because he performed an action he believes to be invalid, so it becomes invalid, similar to if he performed prayer while believing himself to be in a state of ritual impurity, only for it to be discovered that he was actually pure. The same applies if he exercised control over an object he believed belonged to his father, only for it to be discovered that his father had died and he had inherited it, or if he usurped an object and sold it believing it was usurped, then it turned out to be his own property; it follows the same two views. Al-Qadi said: The origin of these two views concerns one who engages in sexual relations with a woman by divorce believing her to be a stranger, then she turns out to be his wife, or one who declares the emancipation of a woman he believes to be free, only for her to turn out to be his slave girl; there are two narrations regarding the occurrence of the divorce and the emancipation. The Shafi'is have two views on these issues, as we have recounted. And Allah knows best.
(3) In the manuscripts: "it is invalid" (fāsadahu).
وتَفْسِيرُها بذلك دَلِيلٌ على أنَّه أرادَ السُّكْنَى، فأشْبَهَ ما لو قال: هذه لك سُكْنَاها. وإذا احْتَمَلَ أن يُرِيدَ له الرَّقَبةَ، واحْتَمَلَ أن يُرِيدَ السُّكْنَى، فلا نُزِيلُ مِلْكَه بالاحْتِمالِ.
فصل: إذا وَهَبَ هِبَةً فاسِدَةً، أو باعَ بَيْعًا فاسِدًا، ثم وَهَبَ تلك العَيْن، أو باعَها بِعَقْدٍ صَحِيحٍ، مع عِلْمِه بِفَسَادِ الأَوَّل، صَحَّ العَقْدُ الثاني؛ لأنَّه تَصَرَّفَ في مِلْكِه، عالِمًا بأنَّه مِلْكُه. وإن كان يَعْتَقِدُ صِحَّةَ العَقْدِ الأوَّلِ، ففى صِحَّةِ الثاني وَجْهَانِ؛ أحدهما، صَحَّتُه؛ لأنَّ تَصَرُّفَه صادَفَ مِلْكَه، وتَمَّ بِشُرُوطِه، فصَحَّ، كما لو عَلِمَ فسَادَ الأَوَّلِ. والثاني، لا يَصِحُّ؛ لأنَّه تَصَرَّفَ تَصَرُّفًا يَعْتَقِدُ فَسَادَه، فَفَسَدَ (٣)، كما لو صَلَّى يَعْتَقِدُ أنَّه مُحْدِثٌ، فبانَ مُتَطَهِّرًا. وهكذا لو تَصَرَّفَ في عَيْنٍ يَعْتَقِدُ أنَّها لأبِيه، فبانَ أنَّه قد ماتَ ومَلَكَها بالمِيرَاثِ، أو غَصَبَ عَيْنَها فباعَها يَعْتَقِدُها مَغْصُوبةً، فبانَ أنَّها مِلْكُه، فعلى الوَجهَيْنِ. قال القاضي: أصْلُ الوَجْهَيْنِ مَن باشَرَ امْرَأةً بِطَلَاقٍ يَعْتَقِدُها أجْنَبِيّةً، فبانَتِ امْرَأتُه، أو واجَه بالعِتْقِ مَن يَعتَقِدُها حُرَّةً، فبانَتْ أمَتُه، ففى وُقُوعِ الطَّلَاقِ والحُرِّيَّةِ رِوَايتانِ. ولِلشّافِعِيَّةِ في هذه المَسَائِل وَجْهانِ، كما حَكَيْنا. واللَّه أعلمُ.
(٣) في النسخ: "ففسده".