In Parashat Vayigash (46:30), we read
וַיֹּ֧אמֶר יִשְׂרָאֵ֛ל אֶל־יוֹסֵ֖ף אָמ֣וּתָה הַפָּ֑עַם אַחֲרֵי֙ רְאוֹתִ֣י אֶת־פָּנֶ֔יךָ כִּ֥י עוֹדְךָ֖ חָֽי׃ And Israel said unto Joseph: ‘Now let me die, since I have seen thy face, that thou art yet alive.’
His remark is strange, for it appears to contradict this dictum in Masechet Berachot (19a)
לעולם אל יפתח אדם פיו לשטן
Translation: “Never open the mouth to the Satan”
Why did Yaakov make such a remark?