i withdrew 401k account to buy a bigger house as my family grew. would this distribution qualify for any tax deductions and reduced penalty? i didn't sell my first house.

if i see the previous house, i won't be able to buy it at the price i purchased back in 2018, so i withdrew my 401k and bought bigger home to accomodate need.