Note 218 — Chapter VIII · The Origin of the Old Testament Canon of Scripture
Reading edition
This was accounted for in later days by saying that when Haggai, Zechariah and Malachi died the Holy Spirit left Israel (Sanhedrin 11a); therefore (this is the inference) no inspired book can have been written in post-prophetic times, cp. Yoma 21b.