Imam Ali radhi allahu anhu was asked how can a person know that he is from the people of Duniya or from the people of Allah.
Hz. Ali replied `there is a meter inside yourself that you can test with it to know which side you are and Ali ra) proceeded by saying that If a person comes to your home to give you a gift, and the same time another person comes to take something from you " if you are more happy with the person that gave you Gift then you are from the people of duniya, and if you are more happy with the person that took from you then you are from the people of Allah.
Source: received from WhatsApp, source need to be verified.