Nahj al-Balāgha

Hadith 1690
trust-in-godgood-deeds
٦٩. وَقَالَ (عليه ‏السلام): إِذَا لَمْ يَكُنْ مَا تُرِيدُ فَلَا تُبَلْ مَا كُنْتَ.
69. Amīr al-mu’minīn, peace be upon him, said: If what you aim at does not come about then do not worry as to what you were.
Source: al-Sharīf al-Raḍī