1.Go to%appdata%
2.Go to the .minecraft folder
3.Go to the logs folder
4.Ctrl-F to search for a certain player's chat
Some people seem to not have known how to do this so decided to make this. Hope it helps.
Edit: Or you can do /chatreport xD I am an idiot