means that
the old saying presents prayer as the remaining recourse of someone who lacks the financial means to obtain what is needed.
For example, if you have no money, you have no luck; You cannot earn anything with just prayers. This is a situation where “He that cannot pay, let him pray” applies.