סימן ב סעיף ז
כְּתִיב, בָּרְכִי נַפְשִׁי אֶת ה' וְכָל קְרָבַי אֶת שֵׁם קָדְשׁוֹ. וְכֵיוָן שֶׁצָּרִיךְ הָאָדָם לְבָרֵךְ אֶת הַשֵּׁם בְּכָל קְרָבָיו, אָסוּר לְבָרֵךְ עַד שֶׁיְּנַקֶּה אֶת הַקְּרָבַיִם מִצּוֹאָה וּמֵי רַגְלָיִם. וּבַבֹּקֶר בְּקוּמוֹ מִסְּתָמָא הוּא צָרִיךְ לַעֲשׂוֹת צְרָכָיו אוֹ לְכָל הַפָּחוֹת לְהַשְׁתִּין, עַל כֵּן לֹא יְבָרֵךְ בִּרְכַּת עַל נְטִילַת יָדַיִם בִּשְׁעַת נְטִילָה עַד לְאַחַר שֶׁיְּנַקֶּה אֶת עַצְמוֹ, וְיִרְחַץ יָדָיו עוֹד פַּעַם אַחַת וְאָז יְבָרֵךְ עַל נְטִילַת יָדַיִם וַאֲשֶׁר יָצַר וּבִרְכַּת הַתּוֹרָה אֱלֹהַי נְשָׁמָה וְכוּ'.
It is written: "My soul, bless Hashem and all that is within me [bless] His holy Name."11Psalms 103:1. It follows that since a person needs to bless God with all his innards, he is forbidden to recite the berachah until he cleans his intestines from excrement and urine. In the morning when a person awakens he probably has a need to relieve himself or at least to urinate; therefore he should not recite the berachah over the washing of the hands at the time of washing, but rather after he relieves himself. He then washes his hands again and then recites the berachah al netilas yadayim, and then the berachah of asher yatzar, followed by the berachos on the Torah and then the berachah of Elokai neshamah.12According to Mishnah Berurah, the berachah of Elokai neshamah should be said after the berachah of Asher yatzar.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)