What’s funny about this is that in Star Trek he’s quoting Sherlock Holmes, but in Sherlock he’s quoting Spock.
Although the original quote was from Sherlock Holmes. It was used in TOS and then in Star Trek (2009) as a reference to SH. Then in Sherlock 2×02, Sherlock says it and John calls him ‘Spock’ as though it’s a reference to Star Trek and Wibbly Wobbly Inception of the quote, yo.
Canonically Spock is a descendant of Sherlock Holmes.
Wait, really? ^^^^
Yep. Star Trek 6 Spock says “An ancestor of mine once said ‘If you eliminate the impossible, whatever remains however improbable must be the truth.”