I want to stop serial.println is there any code that stop it
What is your concern?
Show us your sketch.
I am guessing that you want to stop it printing a new like. If so, use Serial.print() instead. If not, please describe the problem clearly.
Where is your code? You can't stop println and should not stop it. Your problem must reside on the rest of the code if you have problems with println. If you're not coding right, don't blame the println.
There is only one way to stop Serial.println from printing and that is to empty its buffer while it is printing.
As Arduino is single threaded, calls to println() are in fact blocking.
The only way I can think of to act upon the buffer is an interrupt handler.
This ISR reacts on some external signal and clears the buffer.
be aware that handling a buffer under interrupt needs special constructs like locking flags.
given the fact that the buffer is not that big it would stop printing within a few dozen milliseconds even if you do nothing (you shuold not call print again of course)
That said, I never tried to code it but I would start with reading about pin change interrupts.