(10) باب مَا يَجُوزُ مِنَ الْعَمَلِ فِي الصَّلاَةِ
Narrated Aisha:
I used to stretch my legs towards the Qibla of the Prophet (ﷺ) while he was praying; whenever he prostrated he touched me, and I would withdraw my legs, and whenever he stood up, I would restretch my legs.
Reference: Sahih al-Bukhari 1209
In-book reference: Book 21, Hadith 13
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 22, Hadith 300