I saw Uthman ؓ do that and he told me that he saw the Prophet ﷺ do that.
أَنَّهُ رَأَى جَنَازَةً مُقْبِلَةً فَلَمَّا رَآهَا قَامَ وَقَالَ رَأَيْتُ عُثْمَانَ يَفْعَلُ ذَلِكَ وَأَخْبَرَنِي أَنَّهُ رَأَى النَّبِيَّ ﷺ يَفْعَلُهُ
I saw Uthman ؓ do that and he told me that he saw the Prophet ﷺ do that.
أَنَّهُ رَأَى جَنَازَةً مُقْبِلَةً فَلَمَّا رَآهَا قَامَ وَقَالَ رَأَيْتُ عُثْمَانَ يَفْعَلُ ذَلِكَ وَأَخْبَرَنِي أَنَّهُ رَأَى النَّبِيَّ ﷺ يَفْعَلُهُ
It was narrated from Aban bin ʿUthman that He saw a funeral coming. When he saw it he stood up and said. I saw ʿUthman doing that and he told me that he saw the Prophet ﷺ doing that.
أَنَّهُ رَأَى جَنَازَةً مُقْبِلَةً فَلَمَّا رَآهَا قَامَ فَقَالَ رَأَيْتُ عُثْمَانَ يَفْعَلُ ذَلِكَ وَخَبَّرَنِي أَنَّهُ رَأَى النَّبِيَّ ﷺ يَفْعَلُهُ