In which book, which chapters does Hegel talk about 'everything happens for a

Read another response by Michael Lacewing
Read another response about Philosophers
In which book, which chapters does Hegel talk about 'everything happens for a reason'? Are there other authors that talk about this topic? What are the titles?