A man once asked Abū Al-Dardāʾ – Allāh be pleased with him – for advice. He said:
Remember Allāh in good times and He will mention you in hard times. When you remember those who have passed away, consider yourself like one of them. And when you think of involving yourself in some worldly matter, consider first what it will lead to in the end.
Al-Dhahabī in Siyar Aʿlām Al-Nubalāʾ, under the biography of Abū Al-Dardāʾ.