On the authority of Abu Abbas Abdullah bin Abbas (may Allah be pleased with him) who said: One day I was behind the Prophet (peace and blessings of Allah be upon him) [riding on the same mount] and he said, “O young man, I shall teach you some words [of advice]: Be mindful of Allah and Allah will protect you. Be mindful of Allah and you .... ” It was related by at-Tirmidhi, who said it was a good and sound hadeeth.
Another narration, other than that of Tirmidhi, reads:
Be mindful of Allah, and you will find Him in front of you,
Recognize and acknowledge Allah in times of ease and prosperity,
And He will remember you in times of adversity,
And know that what has passed you by [and you have failed to attain] was not going to befall you,
And what has befallen you was not going to pass you by,
And know that victory comes with patience,
Relief with affliction, and hardship with ease.
where from is the last hadith?