صحيح البخاري
From Sahih Bukhari (Hadith 6272):
Narrated Ibn `Umar:I saw Allah's Messenger (ﷺ) in the courtyard of the Ka`ba in the Ihtiba.' posture putting his hand round his legs like this
Reference: Bukhari 6272