That’s the title of Friedrich Hayek’s final book (published 1988).
According to the Wikipedia page of the book, the title drives “from a passage in Adam Smith’s The Theory of Moral Sentiments (1759), though the exact phrase does not occur in Smith’s book.”
Here is that Adam-Smith quote, according to Wikipedia:
‘The man of system … is apt to be very wise in his own conceit; and is often so enamoured with the supposed beauty of his own ideal plan of government, that he cannot suffer the smallest deviation from any part of it. … He seems to imagine that he can arrange the different members of a great society with as much ease as the hand arranges the different pieces on a chess-board. He does not consider that the pieces on the chess-board have no other principle of motion besides that which the hand impresses upon them; but that, in the great chess-board of human society, every single piece has a principle of motion of its own, altogether different from that which the legislature might chuse [choose] to impress upon it.’ Adam Smith, The Theory of Moral Sentiments, ed. D.D. Raphael and A.L. Macfie, Indianapolis: Liberty Fund 1984, VI.ii.2.17: 233-4.