afterthought (n.)
1660s, from after + thought.