The Witcher is a series of nine fantasy novels and 15 short stories by Polish author Andrzej Sapkowski. The series revolves around the eponymous witcher, Geralt of Rivia. From Wikipedia
He says a single line in his first book seeded the idea later enlarged by the games.