Soap does not form lather with hard water:-
Scum formed by lathering soap
Hard water contains dissolved salts of bicarbonates, chlorides, and sulphates of magnesium and calcium which forms an insoluble white precipitate i.e. scum on reacting with soap. Soap does not form lather with soft water which is free from these dissolved salts.