John Locke said this quote

The thoughts that come often unsought and as it were drop into the mind are commonly the most valuable of any we have.