Notice the patterns between your rich friends and the poor friends.
Success leaves clues and if you are aware enough then you will be able to pick up on the clues and adopt these habits into your own life
Practice humility and seek out people who are better than you. People that can help you improve in areas of your life you want to improve in. Learn from them about what makes them successful. If they are healthy then what do they do in the area of health. If they are wealthy then what do in the area of wealth. If they have a successful business then what do they do to make it successful. If they are great investors what is their criteria to make an investment.
Notice you deficiencies or certain areas that you would like to change or improve and seek out the people who can help you.
On the flip side notice the unsuccessful people. What do they do to make them unsuccessful? What habits and beliefs do they have? What actions do they do to hurt themselves?
Know what not to do is just as important as knowing what to do.