Shiva Purana
पूर्वजन्मकृतं चेद्वै काशीदर्शनमादरात् ॥ तदा काशीं च संप्राप्य लभेन्मृत्युं न चान्यथा ॥ ४७॥
If Kāśī had been visited with devotion in the previous birth, the person in the present birth reaches Kāśī and dies there and not otherwise.
english translation
pUrvajanmakRtaM cedvai kAzIdarzanamAdarAt ॥ tadA kAzIM ca saMprApya labhenmRtyuM na cAnyathA ॥ 47॥
hk transliteration by Sanscript