While chess is a popular game and Star Trek has featured several references to it, Kirk and Spock never directly interact through a chess game or using the phrase "chess, Mr. Spock" in the original series or any subsequent series.
Do you remember the episode where you heard this phrase? Maybe it's a fan fiction or a misremembered scene.