Praise be to Allaah.
This hadeeth was narrated by al-Bukhaari (2104) and Muslim (2068) and others, in several places and via several isnaads. For example, al-Bukhaari narrated it under the heading Baab al-Tijaarah fima yukrah libsuhu li’l-rijaali wa’l-nisa’ (Chapter on dealing in things that are makrooh for men and women), via Saalim ibn ‘Abd-Allaah ibn ‘Umar from his father, who said: The Prophet (peace and blessings of Allaah be upon him) sent a hullah (garment) of silk and he saw him wearing it and said, “I did not send it to you for you to wear it, for the one who wears it is one who has no share (in the Hereafter). Rather I sent it to you so that you could make use of it,” i.e., sell it.
This hadeeth indicates that it is permissible to deal in clothes that may be used in one way but not in another, and it is permissible to give them to others, and the one who buys such a thing or to whom it is given has to use it in ways that are permissible, not in ways that are forbidden. Examples of that include gold jewellery, weapons, knives, grapes and other things that may be used for halaal or haraam purposes. It is permissible to deal in them and to give them to others.
The one who buys or is given such things must use them in ways that are permissible, such as selling them, giving them as gifts, etc; he should not use them in any way that is forbidden.
But if the thing is something that is forbidden to use in any way, then it is not permissible to deal in it or to give it as a gift, such as pigs, lions and wolves. There is nothing in the hadeeth to suggest that it is permissible to sell the things mentioned in the question, so it is not valid to draw an analogy between selling cigarettes, tobacco and revealing swimsuits for men and woman and selling things that may be used in one way but not another, or under some circumstances but not others, because it is haraam to use them in all circumstances.
And Allaah is the Source of strength.