Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:11234ʿAbd al-ʿAzīz b. Muḥammad b. Shabbān> ʿAbd al-Bāqī b. Qāniʿ > Ḥāmid b. Muḥammad > Surayj b. Yūnus > Muḥammad b. Rabīʿah > ʿAlī b. Ṣāliḥ > ʿAbd al-Aʿlá > Ibn al-Ḥanafiyyah > ʿAlī > Idhā

[Machine] "If the mortgage is less, then the preference should be returned. And if it is more, then it is based on its contents. Al-Shafi'i narrated from Ali ibn Abi Talib that it is more correct for them to exchange the preference than narrating from Abdul A'la. And we have seen your companions weakening the narration of Abdul A'la, which is not contradicting it with a severe weakening. So how about what opposes it from someone who is closer to authenticity and more deserving of it? And this statement is based on what Abu Abdullah permitted me to narrate from him from Abu al-Abbas from Rabi' from al-Shafi'i."  

البيهقي:١١٢٣٤أَخْبَرَنَا عَبْدُ الْعَزِيزِ بْنُ مُحَمَّدِ بْنِ شَبَّانَ بِبَغْدَادَ ثنا عَبْدُ الْبَاقِي بْنُ قَانِعٍ ثنا حَامِدُ بْنُ مُحَمَّدٍ ثنا سُرَيْجُ بْنُ يُونُسَ ثنا مُحَمَّدُ بْنُ رَبِيعَةَ عَنْ عَلِيِّ بْنِ صَالِحٍ عَنْ عَبْدِ الْأَعْلَى عَنِ ابْنِ الْحَنَفِيَّةِ عَنْ عَلِيٍّ ؓ قَالَ

إِذَا كَانَ الرَّهْنُ أَقَلَّ رَدَّ الْفَضْلَ وَإِنْ كَانَ أَكْثَرَ فَهُوَ بِمَا فِيهِ قَالَ الشَّافِعِيُّ الرِّوَايَةُ عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ ؓ بِأَنْ يَتَرَادَّانِ الْفَضْلَ أَصَحُّ عَنْهُ مِنْ رِوَايَةِ عَبْدِ الْأَعْلَى وَقَدْ رَأَيْنَا أَصْحَابَكُمْ يُضَعِّفُونَ رِوَايَةَ عَبْدِ الْأَعْلَى الَّتِي لَا يُعَارِضُهَا مُعَارِضٌ تَضْعِيفًا شَدِيدًا فَكَيْفَ بِمَا عَارَضَهُ فِيهِ مَنْ هُوَ أَقْرَبُ مِنَ الصِّحَّةِ وَأَوْلَى بِهَا مِنْهُ وَهَذَا الْكَلَامُ فِيمَا أَجَازَ لِي أَبُو عَبْدِ اللهِ رِوَايَتَهُ عَنْهُ عَنْ أَبِي الْعَبَّاسِ عَنِ الرَّبِيعِ عَنِ الشَّافِعِيِّ