Sahih Muslim
773.01

Abdullah reported:I prayed with the Messenger of Allah (ﷺ) and he lengthened it till I entertained an evil thought. It was said to him what that thought was. He said: I thought that I should sit down and forsake him

773.02

A hadith like this has been narrated by A'mash with the same chain of transmitters