حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا جَرِيرٌ، وَوَكِيعٌ، عَنِ الأَعْمَشِ، عَنْ أَبِي سُفْيَانَ، عَنْ جَابِرٍ، قَالَ رَكِبَ رَسُولُ اللَّهِ صلى الله عليه وسلم فَرَسًا بِالْمَدِينَةِ فَصَرَعَهُ عَلَى جِذْمِ نَخْلَةٍ فَانْفَكَّتْ قَدَمُهُ فَأَتَيْنَاهُ نَعُودُهُ فَوَجَدْنَاهُ فِي مَشْرَبَةٍ لِعَائِشَةَ يُسَبِّحُ جَالِسًا قَالَ فَقُمْنَا خَلْفَهُ فَسَكَتَ عَنَّا ثُمَّ أَتَيْنَاهُ مَرَّةً أُخْرَى نَعُودُهُ فَصَلَّى الْمَكْتُوبَةَ جَالِسًا فَقُمْنَا خَلْفَهُ فَأَشَارَ إِلَيْنَا فَقَعَدْنَا ‏.‏ قَالَ فَلَمَّا قَضَى الصَّلاَةَ قَالَ ‏"‏إِذَا صَلَّى الإِمَامُ جَالِسًا فَصَلُّوا جُلُوسًا وَإِذَا صَلَّى الإِمَامُ قَائِمًا فَصَلُّوا قِيَامًا وَلاَ تَفْعَلُوا كَمَا يَفْعَلُ أَهْلُ فَارِسَ بِعُظَمَائِهَا ‏"
Translation
Narrated Jabir ibn Abdullah

The Messenger of Allah (ﷺ) rode a horse in Medina and it threw him onto the trunk of a date palm, injuring his foot. We came to visit him and found him in a chamber belonging to Aisha, performing supererogatory prayer while sitting. We stood behind him, but he remained silent regarding us. Then we came to visit him another time, and he performed the obligatory prayer while sitting. We stood behind him, but he motioned to us, so we sat down. When he finished the prayer, he said: "When the imam prays sitting, then pray sitting; and when the imam prays standing, then pray standing. Do not do as the Persians do out of reverence for their leaders."