Mishkat al-Masabih 2451
وَعَن قَتَادَة: بَلَغَهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ إِذَا رَأَى الْهِلَالَ قَالَ: «هِلَالُ خَيْرٍ وَرُشْدٍ هِلَالُ خَيْرٍ وَرُشْدٍ هِلَالُ خَيْرٍ وَرُشْدٍ آمَنْتُ بِالَّذِي خَلَقَكَ» ثَلَاثَ مَرَّاتٍ ثُمَّ يَقُولُ: «الْحَمْدُ لِلَّهِ الَّذِي ذَهَبَ بِشَهْرِ كَذَا وَجَاء بِشَهْر كَذَا» . رَوَاهُ أَبُو دَاوُد
From Qatadah: It reached him that when the Messenger of Allah ﷺ saw the new moon, he would say: "A new moon of good and right guidance, a new moon of good and right guidance, a new moon of good and right guidance. I believe in the One who created you," three times. Then he would say: "Praise be to Allah who has taken away such-and-such a month and brought such-and-such a month." Reported by Abu Dawud.