Green’s Dictionary of Slang

bar of soap n.

[rhy. sl. = dope n.1 (7)]

drugs.

[UK]J.G. Brandon Gang War 200: ‘Cargo of what, William?’ ‘Bars of soap,’ Big Bill answered tersely [...] ‘Dope.’.
[US]Anslinger & Tompkins Traffic In Narcotics 303: bars of soap. Drugs.
[UK]J. Franklyn Dict. of Rhy. Sl.
[UK]R. Puxley Cockney Rabbit.
[UK]B. Kirkpatrick Wicked Cockney Rhy. Sl.