From Classical Persian پَنْد (pand, “knack, trick”). Semantic development resembles Ancient Greek τέχνη (tékhnē) and Latin ars.
Practice speaking and memorizing "فن" and many other words and sentences in Arabic.