Comprehension and application

To what do the pronouns in مِنْهُ and مِنْهَا refer, respectively?

Earning, good deeds, and seeking knowledge (Hadith 44–50)