In Genesis 44:5 (NASB)
Is this not that from which my lord drinks, and which he indeed uses for divination? (...)
and in Genesis 44:15 (NASB)
Joseph said to them, “What is this thing that you have done? Do you not know that a man who is like me can indeed practice divination?”
Both of these passages combined seem to indicate that Joseph practised divination (which is what makes me disagree with the marked as accepted answer to this question).
In Deuteronomy 18:10 (NASB)
There shall not be found among you anyone who makes his son or his daughter pass through the fire, one who uses divination, a soothsayer, one who interprets omens, or a sorcerer,
Could God be ok with some types of divination? (Like Joseph's type)