A man once asked Abû Al-Dardâ’ – Allah be pleased with him – for advice. He said:
Remember Allah 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â’.