Has a person fulfilled the mitzvah of prayer if their request was not granted?
Yes: the mitzvah consists of asking and pleading with God. Having the request granted is prayer’s desired outcome, but it is not part of performing the mitzvah itself. Thus even a person whose prayers are described as unheard still fulfills the mitzvah of prayer.
A practical halachic question: the final ruling is for your rabbi.
Quote from the source«דהמצוה היא רק לבקש ולהתחנן, ומילוי הבקשה אינו חלק מהמצוה.»
- Author
- כ"ק אדמו"ר מליובאוויטש
- Source
- אוצרות המועדים — אוצרות המועדים, p. 15