Sure Maryam

19:78

أَطَّلَعَ ٱلْغَيْبَ أَمِ ٱتَّخَذَ عِندَ ٱلرَّحْمَٰنِ عَهْدًۭا

Hat er etwa Einblick in das Verborgene gewonnen, oder hat er vom Allerbarmer eine Verpflichtung entgegengenommen?

Tafsir 19:78

Does he have knowledge of the Ghaib and therefore he said that with some proof? Or does he have a pledge with his Lord to enter him into paradise and to give him wealth and children?