ʿUyūn akhbār al-Riḍā - Volume 1 > Various Traditions From al-Ridha (s)
Hadith #3

3 - وَبِهذَا الإسناد عَنِ الرِّضا عَلَيْهِ السَّلامُ، عَن أَبيهِ مُوسَى بْنِ جَعْفَر عَلَيْهِ السَّلامُ قالَ: جَاءَ رَجُلٌ إِلَى الصَّادِقِ‏ عَلَيْهِ السَّلامُ فَقَالَ قَدْ سَئِمْتُ الدُّنْيَا فَأَتَمَنَّى عَلَى اللَّهِ الْمَوْتَ فَقَالَ تَمَنَّ الْحَيَاةَ لِتُطِيعَ لا لِتَعْصِيَ فَلانْ تَعِيشَ فَتُطِيعَ خَيْرٌ لَكَ مِنْ أَنْ تَمُوتَ فَلا تَعْصِيَ وَلا تُطِيعَ.

30-3 According to the same documentation, it has been narrated on the authority of Al-Ridha (s) on the authority of his father Musa ibn Ja’far (s), “A man went to see As-Sadiq (s) and said, ‘I am fed up with this world and ask God for my death.’ The Imam (s) told him, ‘It is better that you ask God to live so that you can obey Him. It is better for you to live and obey God, than to die and have neither disobeyed or obeyed God.’”