Two distinct uses: (1) book preface — same slot as
序言 (xùyán);
前言 sounds slightly more functional,
序言 more literary. (2) Set phrase
前言不搭后语 (qiányán bù dā hòuyǔ) — 'incoherent, contradicting oneself', literally 'earlier words don't match later words'.