Sefer Chasidim Siman 131
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
אם ישאל אדם דבר שהוא שבח לבוראו כגון על לימוד תורה או דבר א' מחפצי שמים ושופך את נפשו עליו הקב"ה שומע תפלתו אע"פ שאין בידו מעשים טובים:
Medieval Jewish mysticism, translated by Sholom Alchanan Singer. Northbrook, Ill. Whitehall Co., 1971
If a man requests matters which redown to the praise of his Creator, such as the study of the Law or other matters of heavenly discourse and pours out his soul for it, the Holy One, blessed be He, hears his prayer even though he does not possesss good deeds.