The full text of Hamlet is online at eNotes. The soliloquy you are referring to is in Act III, Scene I:
About half way down the page, the soliloquy begins.
We have a Hamlet tutor online right now to help you!
To chat with a tutor, please set up a tutoring profile by creating an account and setting up a payment method. If you initiate a chat, please note you will be charged $0.50 a minute for tutoring time.