Reference: al-Akhlaaq was-Siyar – Ibn Hazam al-Andalusee
Ibn Hazam al-Andalusee (rahima-hullaah) mentions:
Anyone who spends his time studying something inferior, abandoning higher studies of which he is capable, is like someone who sows corn in a field capable of growing wheat, or who plants bushes in a soil which could support palm trees and olives.