The two Middle Eastern countries exchanged messages through a Russian intermediary saying they would not preemptively attack each other.