They knew about magnets; they must have known about the phenomenon of static electricity, even if they didn't realize what it was.
Examples are especially encouraged
You might be interested in some previous answers from the FAQ section entitled "Ancients' views on static electricity":