The Messenger of Allah ﷺ would pray while I was lying down to his right and to his left.
حدثنا محمد بن جعفر حدثنا شعبة عن قتادة عن عطاء
لقد كان رسول الله ﷺ يصلي وأنا عن يمينه وعن شماله مضطجعة
Its chain of transmission is sahih, it has already been mentioned at 24523.