It's Matthew 7:3 from the Bible. A "speck" is a little piece. In this case a little piece of wood, like sawdust. The "log" would be an entire large piece of a tree.
The point is that one should not worry about the small problems or faults that others have, since you have much larger faults of your own.
Student or Learner