What we can learn from this Hadith?
On the authority of Abu Hurairah (ra), who said that the Messenger of Allah (may the blessings and peace of Allah be upon him) said:
‘Allah the Exalted has said: ‘I will declare war against him who shows hostility to a pious worshipper of Mine. And the most beloved thing with which My slave comes nearer to Me is what I have enjoined upon him; and My slave keeps on coming closer to Me through performing Nawafil prayer (or doing extra deeds besides what is obligatory) till I love him. When I love him I become his hearing with which he hears, his seeing with which he sees, his hand with which he strikes, and his leg with which he walks; and if he asks (something) from Me, I give him, and if he asks My Protection (refuge), I protect him.”
One of the main things to take is that a person needs to be on point with their obligatory acts.
It doesn’t matter how many optional acts one does if their obligatory ones aren’t on point.
For example, a person prays the whole night in qiyaam and then misses Fajr.
This is one of the 6 steps of Shaytaan.
A scholar of the past reports in his tafseer that Umar (ra) said, whoever takes care of his relationship with Allah in secret, Allah will take care of his open affairs (like relationship with the people etc).