Righteousness is having good character
I asked Messenger of Allah ﷺ about virtue and vice. He said: Virtue is a kind disposition and vice is what rankles in your heart and that you disapprove that people should come to know of it.
سَأَلْتُ رَسُولَ اللَّهِ ﷺ عَنِ الْبِرِّ وَالإِثْمِ فَقَالَ الْبِرُّ حُسْنُ الْخُلُقِ وَالإِثْمُ مَا حَاكَ فِي صَدْرِكَ وَكَرِهْتَ أَنْ يَطَّلِعَ عَلَيْهِ النَّاسُ