Ibrahim (may Allah have mercy on him) considered a divorce given in the state of shirk (polytheism) to be valid.