Hadithcore
Musnad Ahmad, 1271
graded· Darussalam

It was narrated that Qais bin `Ubad said:

I said to `Ali: Do you think that this decision of yours to leave (Madinah) is something that the Messenger of Allah (ﷺ) recommended to you to do, or is it something that you decided yourself? He said: why are you asking this question? I said: For the sake of our religion. He said. The Messenger of Allah (ﷺ) did not recommend me to do anything with regard to this; rather it is something I decided myself.

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

References1 variant
In-Book Reference
Book 5, Hadith 677