Buddhism does not advocate poverty, nor does it teach us to shun
money. Like what Ven Fazhao said before: "When used in a right way,
money in abundance is a positive thing. Money not gotten from right
livelihood, on the other hand, should not be taken."
Likewise, to ask Buddha or Bodhisattvas for lottery numbers or
money to enrich oneself, is totally un- Buddhist. This is greed and
ignorance. And if after praying, still never win 4D, then hatred
comes. Bingo. you strike all three poisons. 
And in my view, even if you got such winnigs or money after
praying, I don't think is was that Buddha or Bodhisattva hv granted
your wish; but it is most probably your results of past karmic
causes of Giving has ripen.
Financial wealth is a direct result of Giving( bu shi) of past or
present lives. SO, according to the late Ven Master Ying Sun in
Miao Yun JI: " Wealth
comes from the good karmic result of Giving, this is an undisputed
truth; but one still needs the right way to make one's good karmic
reults to happen. Using unlawful [ or wrong] ways to gain wealth
will only plant more bad karma and wasted one's past efforts of
accumulating the good karma."
Yah, so wasteful.
I think AEN has explain it very well above, and Xprobe completes it
wonderfully!