"And Hannah prayed and said" (1 Samuel 2:1). Rav said: She began by arranging words together with confession. And likewise, "And Ezra prayed, and when he made confession" (Ezra 10:1) — Rav said: He began by arranging words together with confession. "My heart exults in the LORD." Rabbi Yirmiyah b'Rabbi Elazar said: Great is the strength of the righteous, for the entire world and all its fullness praise the Holy One, blessed be He, only with half of the Name — "Let every soul praise Yah, Halleluyah" (Psalms 150:6). But the righteous praise the Holy One, blessed be He, with the full Name: "Rejoice, O righteous ones, in the LORD" (Psalms 97:12); "Sing joyfully, O righteous ones, in the LORD" (Psalms 33:1); "My heart exults in the LORD."
Hannah and Ezra Confess in Prayer and the Righteous Praise the Full Name
Midrash Shmuel 4:2
ותתפלל חנה ותאמר. רב אמר התחילה סודרת דברים עם ודויה, ודכותה ויתפלל עזרא וכהתודותו (עזרא י' א'), רב אמר התחיל סודר דברים עם ודויו. עלץ לבי בה', אמר רבי ירמיה ברבי אלעזר גדול כחן של צדיקים שאין כל העולם כולו ומלואו מקלסין את הקב"ה אלא בחצי השם, כל הנשמה תהלל יה הללויה (תהלים ק"נ ו'), אבל הצדיקים מקלסין להקב"ה (בלב) [בשם] שלם שמחו צדיקים בה' (שם צ"ז י"ב), רננו צדיקים בה' (שם ל"ג א'), עלץ לבי בה'.