Dominic was educated in the schools of Palencia, afterwards a university, where he devoted six years to the arts and four to theology. In 1191, when Spain was desolated by a terrible famine, Dominic was just finishing his theological studies. He gave away his money and sold his clothes, his furniture and even his precious manuscripts, that he might relieve distress. When his companions expressed astonishment that he should sell his books, Dominic replied: "Would you have me study off these dead skins, when men are dying of hunger?" This utterance belongs to the few of Dominic's sayings that have passed to posterity. In 1194, around twenty-five years old, Dominic joined the Canons Regular in the canonry of Osma, following the rule of Saint Augustine.