Abu al-Tufayl Amr bin Wathilah (may Allah be pleased with him) narrates: Whenever Sayyiduna Ibn Mas'ud (may Allah be pleased with him) gave us a sermon in Kufah, he would say: "The wretched one is he who was written as wretched in his mother's womb, and the fortunate one is he who was written as fortunate in his mother's womb."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 8498