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:6576Abū ʿAbdullāh al-Ḥāfiẓ > Abū ʿAbdullāh Muḥammad b. Yaʿqūb > Yaḥyá b. Muḥammad b. Yaḥyá > Musaddad > Yaḥyá > Sufyān > Manṣūr b. al-Muʿtamir > Abū Wāʾil > Abū Mūsá

[Machine] The Prophet ﷺ said, "Release the captive, respond to the caller, and visit the sick."  

البيهقي:٦٥٧٦وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا يَحْيَى بْنُ مُحَمَّدِ بْنِ يَحْيَى ثنا مُسَدَّدٌ ثنا يَحْيَى عَنْ سُفْيَانَ حَدَّثَنِي مَنْصُورُ بْنُ الْمُعْتَمِرِ عَنْ أَبِي وَائِلٍ عَنْ أَبِي مُوسَى

عَنِ النَّبِيِّ ﷺ قَالَ فُكُّوا الْعَانِيَ وَأَجِيبُوا الدَّاعِيَ وَعُودُوا الْمَرِيضَ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ مُسَدَّدٍ

See similar narrations below:

Collected by Bukhārī
bukhari:5174Musaddad > Yaḥyá > Sufyān > Manṣūr > Abū Wāʾil > Abū Mūsá

The Prophet ﷺ said, "Set the captives free, accept the invitation (to a wedding banquet), and visit the patients."  

البخاري:٥١٧٤حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا يَحْيَى عَنْ سُفْيَانَ قَالَ حَدَّثَنِي مَنْصُورٌ عَنْ أَبِي وَائِلٍ عَنْ أَبِي مُوسَى

عَنِ النَّبِيِّ ﷺ قَالَ فُكُّوا الْعَانِيَ وَأَجِيبُوا الدَّاعِيَ وَعُودُوا الْمَرِيضَ