From Sahih Muslim (Hadith 1815):
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
Reference: Muslim 1815