Hadithcore
Sunan Abi Dawud, 4110
sahih· Al-Albani

The tradition mentioned above has also been transmitted by al-Auza'i through a different chain of narrators. This version adds:

He was told: Messenger of Allah, in that case he will of starvation. So he allowed him to visit (the cit) twice a week so that he might ask for food and go back.

حَدَّثَنَا مَحْمُودُ بْنُ خَالِدٍ، حَدَّثَنَا عُمَرُ، عَنِ الأَوْزَاعِيِّ، فِي هَذِهِ الْقِصَّةِ فَقِيلَ يَا رَسُولَ اللَّهِ إِنَّهُ إِذًا يَمُوتُ مِنَ الْجُوعِ فَأَذِنَ لَهُ أَنْ يَدْخُلَ فِي كُلِّ جُمُعَةٍ مَرَّتَيْنِ فَيَسْأَلَ ثُمَّ يَرْجِعَ ‏.‏

References2 variants
In-Book Reference
Book 34, Hadith 91
English Reference
Book 33, Hadith 4098