In Genesis 44:5 Joseph told his steward to go after his brothers and charge them with stealing “the cup his master drinks from and also uses for divination.” When Joseph’s brothers were brought back Joseph asked them “Don’t you know that a man like me can find things out by divination?” (NIV)
What Joseph said to his brothers was intended to suggest that his brothers had committed a crime by supposedly stealing Joseph’s cup. At first glance, it looks like Joseph practiced divination but we must put his words into context. Joseph resorted to duplicity and subterfuge in order to trap his brothers. His accusations were false and there is no evidence in the Genesis account of Joseph’s life that he was into divination. All Joseph wanted was to get his family to come to Egypt and avoid the famine that God had foretold in a dream.
Although the Egyptians and other pagan nations used divination, practised sorcery and interpreted omens, it was strictly forbidden to Israel (see Leviticus 29:26 and Deuteronomy 18:10, 14). Worth noting is the fact that the events in Genesis 44 were pre-Exodus and therefore before the Mosaic Law was handed down by God to Moses:
>The Lord said to Moses... Do not practise divination or sorcery (Leviticus 19:26).
The answer to your question is no, God does not condone sorcery.
Oops! I had not seen Dottard's answer before I posted this.