Idiom
Someone says a penny for your thoughts when they want to know what you are thinking, usually when they have been waiting to hear what is on your mind and after a period of silence. The phrase a penny for your thoughts is a gentle coaxing to hear your thoughts, a request rather than a demand.
From Grammarist.com