I want to know if it is permissible to hack someone’s wifi and use it for good reasons.
Hacking someone’s wifi and using their internet without their permission (even if done for a good reason) is not permissible, and must be avoided.
فی مشکاۃ المصابیح: وعن أبی حرّۃ الرقاشی عن عمہ قال: قال رسول اللہ ﷺ: ’’ألا لا تظلموا ألا لا یحل مال امریٔ إلّا بطیب نفس منہ‘‘۔ (ج۲، ص۸۸۹)۔
وفی مرقاۃ المفاتیح: (لا یحل مال امریٔ) أی: مسلم أو ذمّی (إلا بطیب نفس) أی: بأمر أو رضا منہ۔ الخ (ج۔۔۔ ص۱۴۹)