David was an author that had trouble finding inspiration for his work.
David then had his manuscript published.
An idea popped into David's head but he ignored it and gave up.
An idea popped into David's head and he started writing.