This happens in Act V, Scene 2, after Hamlet has been fatally poisoned and just before he dies. He asks Horatio to:
> "Report me and my cause aright / To the unsatisfied."
This request underscores the importance of truth and justice, as Hamlet wants his story to be told accurately, even after his death.