I am the most knowledgeable of people regarding the proper time of this prayer, the night prayer. The Messenger of Allah ﷺ used to pray it at the setting of the moon on the third night of the lunar month.
أخبرنا محمد بن قدامة قال حدثنا جرير عن رقبة عن جعفر بن إياس عن حبيب بن سالم
أنا أعلم الناس بميقات هذه الصلاة عشاء الآخرة كان رسول الله ﷺ يصليها لسقوط القمر لثالثة