What type of stone?
The prevention varies somewhat with the type of material forming the stone.
However, one issue common to all stones is the concentration of urine
and you need to keep your urine dilute, i.e., watery. Drink enough water every day so that your urine is mostly colorless.