Robert Schumann said this quote

If, while at the piano, you attempt to form little melodies, that is very well; but if they come into your mind of themselves, when you are not practising, you may be still more pleased; for the internal organ of music is then roused in you. The fingers must do what the head desires; not the contrary.