Even if you receive the money after you start collecting benefits, Social Security treats it as connected to work done prior to your retirement. Two occupations in which special payments frequently come up are insurance sales and farming. Many retired insurance agents get commissions on policies they sold before the year they retired.
