Ask ’Ali ؓ about that, for he used to go out on campaign with the Messenger of Allah ﷺ. So he asked him and he said: ʿFor the traveller, three days and nights; for one who is not travelling, one day and night.ʿ It was said to Muhammad: Did he attribute it to the Prophet ﷺ” He said: He thought that it was marfooʿ [attributed to the Prophet ﷺ] but he was afraid to say so.
عَنْ ذَلِكَ عَلِيًّا فَإِنَّهُ كَانَ يَغْزُو مَعَ رَسُولِ اللهِ ﷺ فَسَأَلَهُ فَقَالَ لِلمُسَافِرِ ثَلاثَةُ أَيَّامٍ وَلَيَالِيهِنَّ وَلِلمُقِيمِ يَوْمٌ وَلَيْلَةٌ قِيلَ لِمُحَمَّدٍ كَانَ يَرْفَعُهُ فَقَالَ كَانَ يَرَى أَنَّهُ مَرْفُوعٌ وَلَكِنَّهُ كَانَ يَهَابُهُ