There's no one book, especially no handy table that's like "This chord, plus that one, equals happy. This one equals sad." But there is basically the entire discipline of music theory, and there are hundreds of books on that. Music theory is basically about asking, "Why do musicians do what they do? Why do composers tend to put that G chord after that C chord? Why do they use that beat? Why did they pick that key?" And along the way, they hopefully also get to "and what does that do for the listeners? That moment sounds cool. Why? This part makes people cry. So does this other part. What do they have in common?"
The bad news is, to get to the point of these more advanced questions, you have to start with a lot of basic stuff like "what is a key," "what is a chord," on to "what is the dominant," "what is a cadence," and then stuff like "what is a surprise cadence" and "what are borrowed chords." And, while music theorists are increasingly asking all these questions about all kinds of music that people listen to and make, everywhere, some of those basic questions will deal more with stuff that sounds like simple hymns or Bach rather than hip-hop (although you'll start recognizing it everywhere, like the 4-part chorale motion in "Gangsta's Paradise").
All that to say: Study music theory. You'll have to start at the beginning, but before long you'll have some idea of which chords to choose and why.