[Machine] The Messenger of Allah ﷺ said: "Indeed, none of you will die until he completes his provision, so do not be hasty in seeking sustenance, and fear Allah, O people, and be excellent in your pursuit. Take what is permissible and leave what is forbidden." He also has a witness from Ibn Mas'ud with additional words following the conditions stated in Muslim.
قَالَ رَسُولُ اللَّهِ ﷺ «إِنَّ أَحَدَكُمْ لَنْ يَمُوتَ حَتَّى يَسْتَكْمِلَ رِزْقَهُ فَلَا تَسْتَبْطِئُوا الرِّزْقَ وَاتَّقُوا اللَّهَ أَيُّهَا النَّاسُ وَأَجْمِلُوا فِي الطَّلَبِ خُذُوا مَا حَلَّ وَدَعُوا مَا حُرِّمَ» وَأَيْضًا لَهُ شَاهِدٌ عَنِ ابْنِ مَسْعُودٍ بِزِيَادَاتِ أَلْفَاظٍعلى شرط مسلم