Sunan Ibn Majah, Book 5, Hadith 163 (Ibn Majah 965)

It was narrated from ‘Ali that the Messenger of Allah (ﷺ) said:

“Do not crack your fingers during the prayer.”