Mishkat al-Masabih 61
عَنْ مُعَاذٍ قَالَ: أَوْصَانِي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِعَشْرِ كَلِمَاتٍ قَالَ لَا تُشْرِكْ بِاللَّهِ شَيْئًا وَإِنْ قُتِلْتَ وَحُرِّقْتُ وَلَا تَعُقَّنَّ وَالِدَيْكَ وَإِنْ أَمَرَاكَ أَنْ تَخْرُجَ مِنْ أَهْلِكَ وَمَالِكَ وَلَا تَتْرُكَنَّ صَلَاةً مَكْتُوبَةً مُتَعَمِّدًا فَإِنَّ مَنْ تَرَكَ صَلَاةً مَكْتُوبَةً مُتَعَمِّدًا فَقَدْ بَرِئَتْ مِنْهُ ذِمَّةُ اللَّهِ وَلَا تَشْرَبَنَّ خَمْرًا فَإِنَّهُ رَأَسَ كُلِّ فَاحِشَةٍ وَإِيَّاكَ وَالْمَعْصِيَةَ فَإِنَّ بالمعصية حل سخط الله عز وَجل وَإِيَّاكَ وَالْفِرَارَ مِنَ الزَّحْفِ وَإِنْ هَلَكَ النَّاسُ وَإِذا أصَاب النَّاس موتان وَأَنت فيهم فَاثْبتْ وَأنْفق عَلَى عِيَالِكَ مِنْ طَوْلِكَ وَلَا تَرْفَعْ عَنْهُمْ عَصَاكَ أَدَبًا وَأَخِفْهُمْ فِي اللَّهِ. رَوَاهُ أَحْمَدُ
From Muʿadh, who said: The Messenger of Allah ﷺ advised me with ten words. He said: "Do not associate anything with Allah, even if you are killed and burned. Do not disobey your parents, even if they command you to leave your family and your wealth. Do not abandon a prescribed prayer deliberately, for whoever abandons a prescribed prayer deliberately, the protection of Allah is free of him. Do not drink wine, for it is the head of every indecency. Beware of disobedience, for through disobedience the anger of Allah, Mighty and Majestic, descends. Beware of fleeing from the advance [in battle], even if the people perish. When a plague of death strikes the people and you are among them, stay firm. Spend on your dependants from your means, do not lift your stick from them for discipline, and make them fear Allah." Reported by Ahmad.