He refused to sin against God. Because it appeals to human reason and does not take God's standards into consideration. God allowed Joseph to be tested in several areas. In this case, it was in the area of sexual temptation. It was a test of Joseph's faith and faithfulness.
Sin occurs when one yields to temptation.
Consider the differences between situation ethics and God's ethics. Discuss the results of following situation ethics. Discuss the rewards of following God's ethics. Recall times when you have been tested concerning your faith and faithfulness to God. Recall times when you passed the test, and times when you failed.