Ibn Qayyim RA said that there are ten things that bring about the love of Allah SWT.
1) Recitation of the Qur’an with reflection and with understanding of its meanings
2) Seeking closeness to Allah by performing voluntary deeds after having performed obligatory ones, for that leads one to the highest levels of love.
3) Remembering Allah during every situation - with one’s time, heart and deeds, one’s share of that love is to the degree of one’s share in that remembrance
4) Preferring what He loves to what you love when your desires are strong.
5) Allowing your heart to reflect on His Names and Attributes.
6) Reflecting on His many favors and blessings, both the apparent ones and hidden ones, for that leads to His love.