Srimad-Bhagavatam: Canto 9 - Chapter 1 - Verse 16-17
Sanskrit:
श्रुतो भगीरथाज्जज्ञे तस्य नाभोऽपरोऽभवत् ।सिन्धुद्वीपस्ततस्तस्मादयुतायुस्ततोऽभवत् ॥ १६ ॥ऋतूपर्णो नलसखो योऽश्वविद्यामयान्नलात् ।दत्त्वाक्षहृदयं चास्मै सर्वकामस्तु तत्सुतम् ॥ १७ ॥
ITRANS:
śruto bhagīrathāj jajñetasya nābho ’paro ’bhavatsindhudvīpas tatas tasmādayutāyus tato ’bhavat
Translation:
Bhagīratha had a son named Śruta, whose son was Nābha. This son was different from the Nābha previously described. Nābha had a son named Sindhudvīpa, from Sindhudvīpa came Ayutāyu, and from Ayutāyu came Ṛtūparṇa, who became a friend of Nalarāja. Ṛtūparṇa taught Nalarāja the art of gambling, and Nalarāja gave Ṛtūparṇa lessons in controlling and maintaining horses. The son of Ṛtūparṇa was Sarvakāma.
Purport:
Gambling is also an art. Kṣatriyas are allowed to exhibit talent in this art of gambling. By the grace of Kṛṣṇa, the Pāṇḍavas lost everything by gambling and were deprived of their kingdom, wife, family and home because they were not expert in the gambling art. In other words, a devotee may not be expert in materialistic activities. It is therefore advised in the śāstra that materialistic activities are not at all suitable for the living entities, especially the devotees. A devotee should therefore be satisfied to eat whatever is sent as prasāda by the Supreme Lord. A devotee remains pure because he does not take to sinful activities such as gambling, intoxication, meat-eating and illicit sex.