I found it it's season 3 epi 2 No What It Looks Like
Danny walks in with a scruffy puppy under his arm, Hawkes sees him and laughs)
Danny: What?
Hawkes: Well, you know what they say about dogs and, and their owners? (Danny looks over at him) The resemblance is uncanny. (Hawkes cracks up, Danny...