Allah's Messnger ﷺ had alighted in his house (viz. of Abu Ayyub Ansari at the time of his emigration to Medina) and he occupied the lower storey, whereas Abu Ayyub Ansari lived in the upper storey. One night, Abu Ayyub Ansari got up and said (to himself): (How unfortunate it is) that we walk above the head of Messenger of Allah ﷺ, so they went aside and spent the night in a nook and then told Allah's Apostle ﷺ about it whereupon Allah's Apostle ﷺ said: The lower storey is more comfortable (for me). but he (Abu Ayyub Ansari) said: We (would not live) over the roof under which you live. So Messenger of Allah ﷺ shifted to the upper storey, whereas Abu Ayyub Ansari shifted to the lower storey; and he (Abu Ayyub Ansari) used to prepare food for Allah's Apostle ﷺ ; and when it was brought (back) to him he asked (to locate) the part, where his fingers had touched (the food), and he followed his fingers on that part where his fingers (those of the Holy Prophet) had touched it. (One day) he prepared food which contained garlic, and when it was returned to him he asked (to locate) the part which the fingers of Allah's Apostle ﷺ had touched. It was said to him that he had not eaten (the food). He (Abd Ayyub Ansari) was distressed and went up to him (to the Holy Prophet) and said: Is it forbidden? But Messenger of Allah ﷺ said: No, (it is not forbidden), but I do not like it. and he (Abu Ayyub Ansari) said: I also do not like what you do not like or which you did not like. He (Abu Ayyub Ansari) said: (The Prophet did not eat garlic) as Allah's Apostle ﷺ was visited (by angels) and brought him the message of Allah. (Using translation from Muslim 2053c)
أَنَّ رَسُولَ اللهِ ﷺ نَزَلَ عَلَيْهِ فَنَزَلَ النَّبِيُّ ﷺ أَسْفَلَ وَأَبُو أَيُّوبَ فِي الْعُلُوِّ فَانْتَبَهَ أَبُو أَيُّوبَ ذَاتَ لَيْلَةٍ فَقَالَ نَمْشِي فَوْقَ رَأْسِ رَسُولِ اللهِ ﷺ فَتَحَوَّلَ فَبَاتُوا فِي جَانِبٍ فَلَمَّا أَصْبَحَ ذَكَرَ ذَلِكَ لِلنَّبِيِّ ﷺ فَقَالَ النَّبِيُّ ﷺ السُّفْلُ أَرْفَقُ بِي فَقَالَ أَبُو أَيُّوبَ لَا أَعْلُو سَقِيفَةً أَنْتَ تَحْتَهَا فَتَحَوَّلَ أَبُو أَيُّوبَ فِي السُّفْلِ وَالنَّبِيُّ ﷺ فِي الْعُلُوِّ فَكَانَ يَصْنَعُ طَعَامَ النَّبِيِّ ﷺ فَيَبْعَثُ إِلَيْهِ فَإِذَا رُدَّ إِلَيْهِ سَأَلَ عَنْ مَوْضِعِ أَصَابِعِ النَّبِيِّ ﷺ فَيَتَّبِعُ أَثَرَ أَصَابِعِ النَّبِيِّ ﷺ فَيَأْكُلُ مِنْ حَيْثُ أَثَرِ أَصَابِعِهِ فَصَنَعَ ذَاتَ يَوْمٍ طَعَامًا فِيهِ ثُومٌ فَأَرْسَلَ بِهِ إِلَيْهِ فَسَأَلَ عَنْ مَوْضِعِ أَثَرِ أَصَابِعِ النَّبِيِّ ﷺ فَقِيلَ لَمْ يَأْكُلْ فَصَعِدَ إِلَيْهِ فَقَالَ أَحَرَامٌ هُوَ؟ فَقَالَ النَّبِيُّ ﷺ أَكْرَهُهُ قَالَ فَإِنِّي أَكْرَهُ مَا تَكْرَهُ أَوْ مَا كَرِهْتَهُ وَكَانَ النَّبِيُّ ﷺ يُؤْتَى