Valuable advice:
The Prophet (may Allah’s peace and bless ings be upon him) gave the following advice to Ibn ‘Abbās (may Allah be pleased with him and his father):
“O boy, I shall teach you some words [of advice]: Be mindful of Allah and He will protect you. Be mindful of Allah and you will find Him with you.”
[Nar rated by Al-Tirmidhi; Sahīh (authentic)]
It was said to Muhibb al-Dīn al-Tabari, a leading Shāfi‘i scholar: “You jumped off the ship while you are an old man?” In response, he said a sentence that went down in history: “These are body organs which we preserved when we were young, and so Allah preserved them for us when we became old.”
{...But Allah is the best Preserver, and He is the Most Merciful of those who show mercy.}
[Surat Yūsuf: 64]
Scholars said:
“Be mindful of Allah’s commands by observing them, and of His prohibitions by avoiding them, and of His limits by not transgressing them, and Allah will preserve for you your life, religion, property, children, and all that He gave you in this world out of His bounty. The Prophet (may Allah’s peace and blessings be upon him) said:“Be mindful of Allah and He will protect you. Be mindful of Allah and you will find Him with you.”
[Narrated by Al-Tirmidhi; Sahīh (authentic)]
As for the Hereafter, Allah Almighty gives them glad tidings about the great win. He says:
{...And those who observe the limits set by Allah. And give glad tidings to the believers.}
[Surat at-Tawbah: 112]
The more you preserve the limits set by Allah Almighty, the more you will be preserved by Him. This includes the following:
Preserving monotheism and the rituals of religion, notably the prayer:
{Be mindful of the prayers, especially the middle prayer; and stand before Allah in complete devotion.}
[Surat al-Baqarah: 238]
Preserving the hearing, sight, and heart from what is unlawful:
{...Indeed, the hearing, the sight, and the heart, all of them will be called to account.}
[Surat al-Isrā’: 36]
{...Therefore the righteous women are obedient, and protect what Allah has entrusted them with in [their husband’s] absence...}
[Surat an-Nisā’: 34]
Preserving the private parts:
{And those who preserve their private parts.}
[Surat al-Mu’minūn: 5]
Preserving oaths:
{...And preserve your oaths...}
[Surat al-Mā’idah: 89]
It is authentically reported that the Prophet (may Allah’s peace and blessings be upon him) used to supplicate Allah saying:
“Allāhumma ihfazhni min bayni yadayya wa min khalfi wa ‘an yamīni wa ‘an shimāli wa min fawqi wa a‘ūdhu bi‘azhamatika an ughtāla min tahti (O Allah, preserve me from in front of me, from behind me, on my right, on my left, and from above me, and I seek refuge in Your greatness that I should be swallowed up from underneath me).”
[Narrated by Al-Tirmidhi; Sahīh (authentic)]
And whenever the Prophet (may Allah’s peace and blessings be upon him) went to bed, he would ask Allah Almighty to preserve him.