afterthought
noun
°A reflection after an act; a later or subsequent thought, action, or expedient.
"She packed her sandals only as an afterthought, but she was glad she did."