This occurs in Act I, Scene IV, when the King is hosting a celebratory feast at Elsinore Castle. He proposes a toast to his own health, which is immediately followed by Hamlet's famous "O, that this too too solid flesh would melt" soliloquy.
The toast is a key moment in the play, as it highlights the King's hypocrisy and foreshadows the dark events to come.