Ibn al-Qaiyim mentioned ten causes that result in Allahs love for His slave and the slaves love for his Lord. [These ten are:]
First, reciting the Quran while pondering over its meanings and what is meant by it.
Second, getting closer to Allah by performing voluntary deeds after completing obligatory deeds.
This is as is stated in a Hadith Qudsi: My slave continues getting closer to Me by performing voluntary deeds until I love him.
Third, continual remembrance of Allah under all circumstances, with ones tongue, heart and actions. The extent of ones love of Allah is determined by this.
Fourth, giving precedence to what He loves over what you love when you are overtaken by your desires.
Fifth, the heart being avid of Allahs Names, and Attributes and the heart roaming in that garden of knowledge.
Sixth, observing Allahs kindness, goodness and bounties, both hidden and open.
Seventh, and this is the most wonderful, the heart being soft, subdued and meek before Allah.
Eighth, being alone with Allah during the time when the Lord descends during the last portion of the night while reading His Book and ending that by asking for forgiveness and repenting.
Ninth, sitting with the beloved and sincere, benefitting from the most fruitful of their speech. And not to speak unless speaking is more beneficial and you know that it will improve your state and be beneficial to others.
Tenth, remaining away from every cause that comes between the heart and Allah.
These ten causes take the lovers to the station of true love and bring them to their Beloved.