To judge someone by their actions and not by their appearance
Oliver Goldsmith's 1766 novel The Vicar of Wakefield. The vicar's wife describes her children as "handsome enough, if they are good enough; for handsome is that handsome does."