Mishkat al-Masabih 1229
وَعَن عَمْرو بن عبسة قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «أَقْرَبُ مَا يَكُونُ الرَّبُّ مِنَ الْعَبْدِ فِي جَوْفِ اللَّيْلِ الْآخِرِ فَإِنِ اسْتَطَعْتَ أَنْ تَكُونَ مِمَّنْ يَذْكُرُ اللَّهَ فِي تِلْكَ السَّاعَةِ فَكُنْ» . رَوَاهُ التِّرْمِذِيُّ وَقَالَ: هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ غَرِيب إِسْنَادًا
From ʿAmr ibn ʿAbasah, who said: The Messenger of Allah ﷺ said: "The closest the Lord is to the servant is in the last part of the night, so if you are able to be among those who remember Allah at that hour, then be." Reported by at-Tirmidhi, who said: This is a hasan sahih hadith, gharib in its chain.