Haraam Food & Drinks

Eating and drinking Haraam

Q:

  1. Is there a hadith which says a person who eats or drinks haram, his dua and salah is not accepted for 40 days?
  2. After eating haram, if the person repents straight away will his dua and salah be accepted or it will still not be accepted until after 40 days?