The Question and Answer section for Pride and Prejudice is a great resource to ask questions, find answers, and discuss the novel.
I think Mr. Collins says this to Elizabeth in chapter 19.
There is humor, iony, and sarcasm throughout this book. Do you have a specific chapter in mind?
Are you referring to The Merchant of Venice?