In Islamic tradition, it is believed that Allah wrote the destinies of all souls 50,000 years before the creation of the universe. This concept from Hadith literature (Sahih Muslim) emphasizes divine foreknowledge and predestination. This event is distinct from the creation of the universe itself or individual birth.