He did not know which god would even bother to listen but he prayed anyway.
He prayed to any deity that would hear him.