Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates: "I helped the Messenger of Allah (peace and blessings be upon him) perform ablution. When he (peace and blessings be upon him) washed his face, he took a handful of water and passed it through his beard from underneath (from the inner side), running his fingers through it, and said: 'This is how my Lord, the Mighty and Majestic, has commanded me.'"
Related hadith on this topic