Genesis 37:28 contains no contradiction. The Ishmaelites and Midianites were related and cooperative traders involved in one event described from complementary perspectives.
The Mari Tablets — c. 1900–1800 B.C.E.
The Mari Tablets confirm the historical authenticity of the patriarchal world, aligning with Genesis in names, customs, and culture.

