Sahih al-Bukhari, Book 56, Hadith 252 (Bukhari 2921)

Narrated Abu Musa:

The Prophet (ﷺ) said, "Free the captives, feed the hungry and pay a visit to the sick."