Okla. Stat. tit. 12, § 684
A plaintiff may, on the payment of costs and without an order of court, dismiss any civil action brought by him at any time before a petition of intervention or answer praying for affirmative relief against him is filed in the action. A plaintiff may, at any time before the trial is commenced, on payment of the costs and without any order of court, dismiss his action after the filing of a petition of intervention or answer praying for affirmative relief, but such dismissal shall not prejudice the right of the intervenor or defendant to proceed with the action. Any defendant or intervenor may, in like manner, dismiss his action against the plaintiff, without an order of court, at any time before the trial is begun, on payment of the costs made on the claim filed by him. All parties to a civil action may at any time before trial, without an order of court, and on payment of costs, by agreement, dismiss the action. Such dismissal shall be in writing and signed by the party or his attorney, and shall be filed with the clerk of the district court, the judge or clerk of the county court, or the justice, where the action is pending, who shall note the fact on the proper record: Provided, such dismissal shall be held to be without prejudice, unless the words "with prejudice" be expressed therein.
R.L. 1910, § 5126.