The best way to separate a solid substance that has dissolved in water is to boil the water away, leaving the substance behind in the beaker. This process allows the water to evaporate, leaving the dissolved substance (if it is a solid) as a residue in the beaker.
Other options, such as using a magnet or filter, wouldn't work for a dissolved substance as it is not in solid form or because dissolved substances pass through filters. Pouring the liquid along a rough surface would not effectively separate a dissolved substance either.