If you are a good person God will protect you from money that will only cause you harm. There is an interesting story found in Rabi` al-Abrar of al-Zamakhshari and later al-Mustatraf of Baha’ al-Din al-Abshihi wherein Imam `Ali (عليه السلام, peace be upon him) displays a prudent lesson in choosing whether your income is through good or evil.
(ودخل علي بن أبي طالب ـ رضي الله عنه ـ المسجد وقال لرجل كان واقفا على باب المسجد: أمسك عليّ بغلتي، فأخذ الرجل لجامها، ومضى وترك البغلة، فخرج علي وفي يده درهمان ليكافىء بها الرجل على إمساكه بغلته فوجد البغلة واقفة بغير لجام، فركبها ومضى، ودفع لغلامه درهمين يشتري بهما لجاما، فوجد الغلام اللجام في السوق قد باعه السارق بدرهمين، فقال علي ـ رضي الله عنه: إن العبد ليحرم نفسه الرزق الحلال بترك الصبر، ولا يزداد على ما قدر له.)
`Ali bin Abi Talib radi Allahu `anhu (may God be pleased with him) approached the Mosque and said to a man who was standing at its gate, “Please hold my mule for me.” So the man took it by its bridle, but then walked on leaving the mule behind.
`Ali came out of the Mosque with 2 dirhams (silver coins) in his hand so that he could compensate the man for holding his mule. But he found the mule standing there without its ornamental bridle. So he climbed the mule and rode on.
He gave his squire the 2 dirhams to go buy another bridle. The squire found the very same bridle which the thief had sold to whom he bought it from for 2 dirhams.
To this, `Ali remarked:
“The bondsman made forbidden for himself pure earnings by abandoning his patience. And he received naught more than what was determined for him anyway.”
Not a single one of the world’s richest people made their fortunes by winning the lottery. You will not be the first. Work hard and honest for your earnings and you will be rewarded for it, but not at the cost of your honor.