Ibn 'Umar (May Allah be pleased with them) reported:
I saw Messenger of Allah (ﷺ) sitting in the compound of the Holy Ka'bah, with the thighs against the stomach and arms around his legs.[Al- Bukhari].
App reference: Book 5, Hadith 9
Arabic/English book reference: Book 5, Hadith 822