I dissent. This- action was commenced by respondents,- the -plaintiffs herein, for the purpose of quieting title to certain- real estate-in Ziebach county, this state, to which the appellant answered by affirmative defense and counterclaim; to this a reply was made. The appellant sought, to--recover a certain-sum of moñey paid on an executory contract for the sale of this real estate, and asked that he be adjudged to- have a valid, interest or *281equity in such real estate and a lien thereon for the sum so paid on said contract; also that the respondents be denied any relief except upon condition that the sums paid upon the contract be repaid to him. It was further alleged in appellant’s answer and counterclaim that the respondent vendor in said executory contract of sale had wrongfully and unlawfully violated said contract. The respondent is the administrator of David E. Pennington, the vendor, who executed the above-mentioned executory contract for the sale of said real estate. Pennington died November I, 1922. No claim has ever been presented by the appellant to the respondent, as administrator, for the repayment of the moneys paid by the appellant, and it is not alleged in appellant’s answer or counterclaim that such claim has been presented to said administrator before the filing of said counterclaim. When the action was reached for trial the parties appeared and the case was tried and testimony taken and submitted. At the trial, when the oral argument was finished, an agreement was made for the filing of written briefs to be considered by the court for findings and judgment. On June 9, 1923, á motion to dismiss without prejudice was made and served by respondents. This motion was heard on June 22, 1923. At this time appellant served and filed an affidavit in opposition to such motion. This motion the court granted and made an order on July 5, 1923, dismissing the respondent’s action, from which order this appeal is taken.
Respondents contend that the granting of the order of dismissal did not constitute an abuse of discretion.
Appellant denied this contention, and asserted that the granting of the order was an abuse of the court’s discretion, and prejudicial to him. We think the appellant is right.
The appellant asserts error in making such order on the following grounds:
First, that the appellant has interposed an affirmative defense and counterclaim growing out of the same transaction alleged in the complaint. ' ' '
Second, that all the testimony has been taken in said action, and that appellant is prejudiced by the lateness of the motion.
Third, that the appellant is deprived of the benefit of the allegations and admissions in respondents’ complaint, and by reason of such facts cannot have findings and judgment on the answer *282and counterclaim after the dismissal of the respondents’ cause of action.
Fourth, that after the dismissal of the respondents’ cause of action the appellant cannot maintain his action against the respondents, for the same reason that he cannot plead' and prove the presentation of a claim against the estate as provided by Section 3397 of the Code.
In order to show respondent’s purposes, we incorporate the following paragraph from respondents’ brief:
“The administrator in performing what he regarded as his duty 'believed that the defendant had no interest in the land described in his complaint, and brought an action tO‘ quiet title. At the trial he discovered' upon the evidence that the defendant held a contract for the purchase of this land from the deceased, and that while the defendant was in default and had abandoned the land, still his rights under the contract had never been foreclosed, and recognized that, as far as he was concerned, it was idle to continue asking the court to decreé that the defendant had no interest in such land, and he thereupon asked the court to dismiss his cause of action without prejudice in order that he might bringan appropriate action, either for specific performance of the contract or for a foreclosure of the same. The defendant, notwithstanding that he had set up his claims in the form of a counterclaim,, could obtain no relief except a judgment that he had an interest in said land by reason of such contract. At the end of such litigation the plaintiff and defendant would have gotten nowhere and, the plaintiff recognizing the fact, was willing to terminate the proceedings as far as he was concerned. The court, however, did not dismiss the defendant’s counterclaim, but left him to litigate it as he saw fit. If the defendant cannot recover under his counterclaim with the plaintiff’s complaint dismissed, the defendant could not recover under his counterclaim, if the plaintiff’s complaint were not dismissed.”
This in itself is a confession that the respondents intend in the future to litigate these issues, and leave the issues undetermined with an expectancy to meet the issues at some future time. Th court should not permit the litigants to blow hot and cold.
It is alleged that on the nth day of October, 1921, the said defendant filed in the office of the register of deeds of said county *283a copy of said contract, and the same was recorded, thereby placing a flaw and an incumbrance upon the title of said land. If the plaintiffs are allowed to dismiss this action without prejudice, it will allow the plaintiffs to ultimately eliminate the contract held by the defendant and to cancel such contract of record, which is the very object of the suit now pending, and which the plaintiffs now seek to dismiss without prejudice, and to force the defendant to litigate every element of the contract by piecemeal.
It was held in Schaetzel v. City of Huron, 6 S. D. 134, 60 N. W. 741, that:
“If such dismissal would materially prejudice the rights of a party to the action, as in case of a counterclaim, a regard for the substantial rights of litigants, and a disposition to' avoid a multiplicity of suits, suggests that an order granting a discontinuance of an action might with propriety be refused.”
We think this action is controlled by the decision of the Axiom Mining Co. v. Little, 6 S. D. 438, 61 N. W. 441, where the South Dakota court held that:
“While it is generally true that a plaintiff has a right to discontinue his action, he ought not to 'be allowed to do so unconditionally, where to so discontinue would manifestly work a wrong to the defendant.”
This was an action to quiet title. The facts in the case show that, while an action was pending, the plaintiff could not take a. patent for a mining claim, and that, if no action were pending, he would be able to make an affidavit by which he could obtain such patent, and the court held that:
“The plaintiff ought not to- be allowed to discontinue, without regard to the question, of whether, strictly construed, the answer should or should not be held to plead a counterclaim.”
It was further suggested that:
“The rule allowing or disallowing the right of a plaintiff to discontinue is not an inelastic or arbitrary one, applying only to counterclaims. It covers cases of counterclaims, not simply because they are counterclaims, but because they are within the principle or reason of the rule which refuses the right to discontinue where to do so would work a material injury to the defendant.” An order dismissing this case was reversed by the Supreme Court. Subera v. Jones, 20 S. D. 628, 108 N. W. 26:
*284“If is only in the absence of a counterclaim or demand for affirmative relief that the plaintiff is entitled, if ever, to dismissal as a matter of right.”
Hulst v. Doerstler, 11 S. D. 14, 75 N. W. 270:
“Because of the counterclaim-, plaintiffs could not dismiss the action without defendant’s consent, and- the court properly proceeded to- hear and determine the issues raised by the allegations of the counterclaim and reply.”
In the case of Deere & Weber Co. v. Hinckley, 20 S. D. 359, 106 N. W. 138, it was held:
“That a plaintiff has an absolute right to dismiss an action, where no counterclaim has been interposed and there is no special réason why the dismissal of the action should not be permitted.”
See Schoniger v. Logan, 40 S. D. 30, 166 N. W. 226; People v. Pratt, 28 Cal. 166, 87 Am. Dec. no. The court may in its discretion refuse a request to discontinue when it would manifestly be prejudicial to the defendant.
We think, under the facts shown in this record, that plaintiffs ought not to be permitted to discontinue their suit when they are conceding that their purpose is to renew their suit. They are already in court, and they fail to show any reason why they should switch the issues. To allow the plaintiffs to do so- would manifestly constitute a prejudicial error. Ordinarily, the right of dismissal should be accorded, but where, under the special circumstances shown here, it would be inequitable to- allow such dismissal for the purposes of allowing the plaintiffs to institute additional suits. The purposes of doing so are clearly stated in the record. To allow such -dismissal would not only be detrimental to the rights of the defendant, but would constitute a palpable injury and wrong and an abuse of discretion..