סימן כא סעיף י
מִי שֶׁנִּסְתַּפֵּק לוֹ אִם הִתְפַּלֵּל אוֹ לֹא, בַּזְּמַן הַזֶּה (שֶׁאֵין מִתְפַּלְּלִין בִּנְדָבָה), אֵינוֹ חוֹזֵר וּמִתְפַּלֵּל (סִימָן ק"ז ק"ח).
If you are in doubt as to whether or not you prayed, in our time (since a voluntary Shemoneh Esrei27תְּפִלַת נְדָבָה—“a voluntary prayer.” Our sages permitted praying a voluntary Shemoneh Esrei provided you add something new (צָרִי לְחַדֵשׁ בָּה דָבָר) i.e. you must pray for something that you have not prayed for before. The laws for “adding something new” are complicated and controversial. It is, therefore, advisable to refrain from “voluntary prayer” if at all possible. (For details of Tefillas Nedavah see Shulchan Aruch Chapt. 107). is not said) you do not repeat the tefillah.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)