In Act 4, Scene 2 of Hamlet, Hamlet expresses satisfaction that King Claudius is asleep. The "knavish speech" refers to Hamlet's own sharp, insulting words directed at the king. Because Claudius is sleeping, his "foolish ear" cannot hear the insults, rendering him deaf to Hamlet's verbal attacks.