nārāyaṇaś ca viśvātmā
na kasyādhvaram īyatuḥ
As stated in Bhagavad-gītā (7.26), vedāhaṁ samatītāni vartamānāni cārjuna. The Lord says, “I know everything that has happened in the past and is going to happen in the future.” Lord Viṣṇu is omniscient, and He therefore knew what would happen at Dakṣa’s sacrificial arena. For this reason neither Nārāyaṇa nor Lord Brahmā attended the great sacrifice performed by Dakṣa.