Anas Ibn Malik radiallahu anahu said that the Prophet sallahu alayhi wa salam said:

من سأل اللهَ الجنةَ ثلاثَ مراتٍ قالت الجنةُ : اللهم أَدخِلْه الجنةَ ، ومن استجار من النارِ ثلاثَ مراتٍ قالت النارُ : اللهمَّ أَجِرْه من النَّارِ

Whoever asks Allah for Jannah three times, Jannah says: Oh Allah enter him into Jannah. And whoever seeks protection from the Hellfire three times, Hellfire says: Oh Allah protect him from the fire

[Saheeh Targheeb no. 3654]

Translated by

Faisal Ibn Abdul Qaadir Ibn Hassan
Abu Sulaymaan