Sunnah.com : Book 9, Hadith 184
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وعن ابن مسعود رضي الله عنه، قال: صليت مع النبي صلى الله عليه وسلم ، ليلة، فلم يزل قائمًا حتى هممت بأمر سوء. قيل: ما هممت؟ قال: هممت أن أجلس وأدعه. ((متفق عليه)) .
Ibn Mas'ud (May Allah be pleased with him) reported:
One night I joined the Prophet (ﷺ) in his (optional) Salat. He (ﷺ) prolonged the Qiyam (standing) so much that I made up my mind to commit an act of wrong. He was questioned: "What did you intend to do?" He replied: "I intended to sit down and stop following him (in Salat)." [Al-Bukhari and Muslim].
Full reference and source
Sunnah.com : Book 9, Hadith 184 Arabic/English book : Book 9, Hadith 1174
View source on Sunnah.com (opens in a new tab)