proverb

You cannot judge a tree by its bark.

Theme: appearance Keyword: dog

means that

outward appearance alone is not a reliable guide to the character or true worth of a person or thing.

similar

You can't tell a book by its cover.

Example

The neglected little apple tree produced the sweetest fruit in the entire orchard.