“He that is shut out
Is soon forgot within.”
The Proverbs of Alfred, st. 19, as published in The Dialogue of Salomon and Saturnus (1848) http://archive.org/stream/dialogueofsalomo00kembuoft#page/226/mode/2up/search/Alfred, edited by John Mitchell Kemble, p. 242.
Misattributed