It is reported from Sayyiduna Ibn Mas'ud (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Learn the Qur'an and teach it to people, learn knowledge and teach it to people, and learn the obligatory shares of inheritance (fara'id) and teach them to people, for knowledge will soon come to an end and trials will appear, until two men will disagree about an inheritance share and will find no one to judge between them."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12173