ref
mid 19th century: abbreviation.
Shortening.
prof (n.)
colloquial shortening of professor, attested by 1838.