Do the gods help us if we pray to them according to Buddhism? Will the action of praying to / worshipping gods for something be fruitful according to Buddhism?

Is there any reference where a god (deva) has helped a person who has prayed to / asked help from the deva ?

In Jainism, it is said that if the followers insist on praying to god, it's advised that they should pray (ask for help) only for the knowledge that leads to Nirvana.

Edit:

I asked this NOT because I wanted help from god or believed in god. I asked this because, Buddha said that there are heavenly beings (gods) with powers, but are themselves mortal too.. So, I just wanted to know, why Buddhists pray to those gods (I've seen many Buddhists praying to god, not all Buddhists). Is that even fruitful?
As the common saying goes: &quot;god(s) help those who help themselves&quot;, if the gods could help someone, it'd be only in accordance with that individual's wholesome kamma. Someone who kills, cheats, or engages in various misconducts shouldn't expect to get &quot;help&quot; no matter how frequent and sincere s/he prays:

From AN 5.57: &quot;There are these five facts that one should reflect on often, whether one is a woman or a man, lay or ordained. Which five?
&quot;'I am subject to aging, have not gone beyond aging.' This is the first fact that one should reflect on often, whether one is a woman or a man, lay or ordained.
&quot;'I am subject to illness, ... death, ...
&quot;'I am the owner of my actions, heir to my actions, born of my actions, related through my actions, and have my actions as my arbitrator. Whatever I do, for good or for evil, to that will I fall heir.' ...
&quot;These are the five facts that one should reflect on often, whether one is a woman or a man, lay or ordained.