Sahih Muslim Book 26, Hadith Number 5534.

Chapter : Kahanat (Divination) is prohibited and it is forbidden to go to Kahin.

This hadith has been narrated on the authority of Mu’awiya b. Hakam as-Sulami through another chain of transmitters. The hadith transmitted on the authority of Yahya b. Abu Kathir (there is an addition of these words): I said: Among us there are men who draw lines and thus make divination. What about this? Thereupon he (the Holy Prophet) said: There was a Prophet who drew lines, so whose lines agree with his line for him it is allowable.