Where can this Harry Potter quote be found?

I heard this quote and I wans't sure if it is from the movie or book or both and I really would like to know! online it only says the movie but I swear it is in the book!

'Happiness can be found even in thed darkest of times if only one remembers to turn on the light'
thank you!
11 answers 11