A person on another forum has found the fic for me.
It is Harry Potter and the Unexpected Friend by CaskettFan5. The particular scene is
Summary from ff.net: During Chamber of Secrets, Harry finds a friend in someone he'd never thought about before. That was the beginning of an experience that opened his eyes to what he had been missing.
It is a Harry/Daphne pairing.