Hazrat Abu Dardara relates that Hazrat Daudas (David) who was foremost in worshipping God, used to recite this prayer for attaining the love of God:
اللَّهُمَّ إِنِّی أَسْأَلُكَ حُبَّكَ وَحُبَّ مَنْ يُحِبُّكَ وَالْعَمَلَ الَّذِي يُبَلِّغُنِی حُبَّكَ اللَّهُمَّ اجْعَلْ حُبَّكَ أَحَبَّ إِلَیَّ مِنْ نَفْسِی وَأَهْلِی وَمِنَ الْمَاءِ الْبَارِدِ
“O Allah, I beg You for Your love and the love of one who loves You and such conduct as should lead me to Your love. O Allah, make Your love dearer to me than my soul and my family and my wealth and dearer than cold water.”
(Jami‘ al-Tirmidhi, Kitab al-Da‘wat)