midianites was from the lieniage of abraham too. not being of jacob but from another wife of Abraham thier forefathers was taught the same as jacob but did not keep the family traditions such as circumcision and may have worshiped other gods by the time of moses but likely still had storied from their forefathers of the God of Abraham.