This sentence comes from the diligent study of Warning. This is an exhortation couplet, not a poem.
This couplet means that when you need knowledge, you regret knowing only a little.
Book: knowledge. Arrival: Wait. Use: needed and useful. Time: time. Fang: Cai. Hate: regret, regret.