It was narrated from ‘Ali that the Messenger of Allah (ﷺ) said:
“Do not crack your fingers during the prayer.”