- How did you know that?
- Because I kicked him out of here a few days ago for the same reason.

5 seconds sound clip from the The Shootist movie soundboard.

You can hear this line at 01:02:51.443 in the DVD version of the movie.

Quote context

[...]

- See, that's how come I knew that you had... that-that you was ailing bad.

- This newspaper reporter here tracked me down. He wants to put out a book on you. He's gonna write it and use my name.

- The Shootist... The Life and Bloody Times of J.B. Books by Serepta Books, his wife.

- He said in the East that it would sell like hot cakes, and he'd split it with me.

- And his name is Dobkins.

- Right.

- How did you know that?

- Because I kicked him out of here a few days ago for the same reason.

- Johnny, what harm is there in a marriage certificate, a piece of paper?

- I don't object to that. It's the book.

- Why?

- What does he know about my life? As a matter of fact, what do you know?

- He says what he doesn't know, he'll make up, and, you know, gory things, shoot-'em-ups and midnight rides, and women tearing out their hair.

[...]