Hazrat Moses (AS) who is one of messenger of great messengers (Ulul Azm). Hazrat Moses (AS) had special favor of God. There are many verses in holy Quran regarding Hazrat Moses (AS). When he travelled from Eygpt- by the guidance of God- he arrived to the Sina region and heard the voice of his beloved in this way:
"يَا مُوسَىٰ ﴿١١﴾ إِنِّي أَنَا رَبُّكَ فَاخْلَعْ نَعْلَيْكَ إِنَّكَ بِالْوَادِ الْمُقَدَّسِ طُوًى ﴿١٢﴾ وَأَنَا اخْتَرْتُكَ فَاسْتَمِعْ لِمَا يُوحَىٰ ﴿١٣﴾ إِنَّنِي أَنَا اللَّـهُ لَا إِلَـٰهَ إِلَّا أَنَا فَاعْبُدْنِي وَأَقِمِ الصَّلَاةَ لِذِكْرِي ﴿١٤﴾"[1]
"O Moses, (11) Indeed, I am your Lord, so remove your sandals. Indeed, you are in the sacred valley of Tuwa. (12) And I have chosen you, so listen to what is revealed [to you]. (13) Indeed, I am Allah. There is no deity except me, so worship me and establish prayer for my remembrance. (14)
Yes, if prayer would be along with its all conditions, it can guarantee the salvation of this world and the other world:
"أَلَا بِذِكْرِ اللَّـهِ تَطْمَئِنُّ الْقُلُوبُ ﴿٢٨﴾"
Hearts are assured by the remembrance of Allah. Unquestionably, by the remembrance of Allah hearts are assured." (28)[2]
Prayer can bring us calmness and peace. Pray with all its conditions, governs hearts and makes easy to die, Moving to the next world will be easy. Pray can make the death sweeter than the honey; and human will be able to say Labiak to God.
“يَا أَيَّتُهَا النَّفْسُ الْمُطْمَئِنَّةُ ﴿٢٧﴾ ارْجِعِي إِلَىٰ رَبِّكِ رَاضِيَةً مَّرْضِيَّةً ﴿٢٨﴾ فَادْخُلِي فِي عِبَادِي ﴿٢٩﴾ وَادْخُلِي جَنَّتِي ﴿٣٠﴾”
[To the righteous it will be said], "O reassured soul, (27) Return to your Lord, well-pleased and pleasing [to Him], (28) and enter among my [righteous] servants (29) and enter My Paradise." (30)[3]
source : Forty Hadith by Imam Ruhullah al-Musawi al-Khumayni