It's often used to describe a situation where someone is angry or upset with another person, and they express their feelings through their gaze.
Example: "When she saw her ex-boyfriend with another woman, she looked daggers at them."
The idiom comes from the image of someone holding daggers, ready to strike, and it suggests a similar sense of threatening intensity.