Full shabad
ਜਹ ਮਾਤ ਪਿਤਾ ਸੁਤ ਮੀਤ ਨ ਭਾਈ ॥
jeh maath pithaa suth meeth n bhaaee ||
Where there is no mother, father, children, friends or siblings
ਮਨ ਊਹਾ ਨਾਮੁ ਤੇਰੈ ਸੰਗਿ ਸਹਾਈ ॥
man oohaa naam thaerai sang sehaaee ||
O my mind, there, only the Naam, the Name of the Lord, shall be with you as your help and support.
ਜਹ ਮਹਾ ਭਇਆਨ ਦੂਤ ਜਮ ਦਲੈ ॥
jeh mehaa bhaeiaan dhooth jam dhalai ||
Where the great and terrible Messenger of Death shall try to crush you,
ਤਹ ਕੇਵਲ ਨਾਮੁ ਸੰਗਿ ਤੇਰੈ ਚਲੈ ॥
theh kaeval naam sang thaerai chalai ||
there, only the Naam shall go along with you.
ਜਹ ਮੁਸਕਲ ਹੋਵੈ ਅਤਿ ਭਾਰੀ ॥
jeh musakal hovai ath bhaaree ||
Where the obstacles are so very heavy,
ਹਰਿ ਕੋ ਨਾਮੁ ਖਿਨ ਮਾਹਿ ਉਧਾਰੀ ॥
har ko naam khin maahi oudhhaaree ||
the Name of the Lord shall rescue you in an instant.
ਅਨਿਕ ਪੁਨਹਚਰਨ ਕਰਤ ਨਹੀ ਤਰੈ ॥
anik punehacharan karath nehee tharai ||
अनिक पुनहचरन करत नही तरै ॥
By performing countless religious rituals, you shall not be saved.
ਹਰਿ ਕੋ ਨਾਮੁ ਕੋਟਿ ਪਾਪ ਪਰਹਰੈ ॥
har ko naam kott paap pareharai ||
The Name of the Lord washes off millions of sins.
ਗੁਰਮੁਖਿ ਨਾਮੁ ਜਪਹੁ ਮਨ ਮੇਰੇ ॥
guramukh naam japahu man maerae ||
As Gurmukh, chant the Naam, O my mind.
ਨਾਨਕ ਪਾਵਹੁ ਸੂਖ ਘਨੇਰੇ ॥੧॥
naanak paavahu sookh ghanaerae ||1||
O Nanak, you shall obtain countless joys. ||1||
When this particular couplet is thrown out, out of context, it looks as if Guruji is threatening us for misdeeds
ਜਹ ਮਹਾ ਭਇਆਨ ਦੂਤ ਜਮ ਦਲੈ ॥
jeh mehaa bhaeiaan dhooth jam dhalai ||
Where the great and terrible Messenger of Death shall try to crush you,
ਤਹ ਕੇਵਲ ਨਾਮੁ ਸੰਗਿ ਤੇਰੈ ਚਲੈ ॥
theh kaeval naam sang thaerai chalai ||
there, only the Naam shall go along with you.
Inside the context of the saloka what you can see is that dhotth jam is something far more intensely personal and internal, it is a very psychological image, of the kind of thing that crushes the "spirit" at death when we have not connected with our true identity in life. Naam either grows in the heart in life and fills it, or the heart goes empty to death. This point is important because the juxtaposition of images describes the two poles of inner self that are possible at death.
ਹਰਿ ਕੋ ਨਾਮੁ ਖਿਨ ਮਾਹਿ ਉਧਾਰੀ ॥
: Sikh Philosophy Network
http://www.sikhphilosophy.net/sikh-sikhi-sikhism/33794-ignorant-person-giving-sikhi-bad-name.html
har ko naam khin maahi oudhhaaree ||
the Name of the Lord shall rescue you in an instant
One can die completely crushed by the angel of death, so to speak, emotionally annihilated; versus the alternative which is to die "spirited" by the Naam. So sad that the habits of culture can destroy such a powerful meaning.